summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Misc.pm
AgeCommit message (Collapse)Author
2009-04-28Extend getIP() to be able to get all addressesStephen Hemminger
Only have one interface for getting addresses.
2009-04-27Cleanup exports of Vyatta::MiscStephen Hemminger
Remove duplicates from list, and make sure getIP is exported, and that explicit imports are listed.
2009-04-27reindent codeStephen Hemminger
2009-03-23Remove #! /usr/bin/perlStephen Hemminger
The modules are not perl executables, they are modules. Fixes lintian warning
2009-03-16isClusterIP() needs to strip off the /mask/interface/bcast.Stig Thormodsrud
2009-03-02Merge branch 'jenner' of 192.168.100.1:git/vyatta-cfg into jennerStephen Hemminger
2009-03-02Ignore /sys/class/net/bonding_mastersStephen Hemminger
Bonding leaves this file in /sys/class/net that confuses scripts.
2009-03-02Add loopback as a type for getInterfacesIPadresses().Stig Thormodsrud
2009-03-02When an IP address is configured on a loopback, ↵Stig Thormodsrud
getInterfacesIPadresses('all') doesn't include them. Include loopback addresses.
2009-03-02Remove duplicate constants.Stig Thormodsrud
2009-03-01Fix bareword error for missing constants.Stig Thormodsrud
Fix $mask usagage in getInterfacesIPadresses().
2009-01-26Vyatta::Misc - Fix perl critic warningsStephen Hemminger
Eliminate warnings about 2 arg open, and non stricture.
2009-01-20Fix isIPinInterfacesStephen Hemminger
fix bug in conversion to Vyatta::Interface by rewriting/refactoring.
2009-01-18Fix regression in Vyatta::MiscStephen Hemminger
Handle requests for interfaces of a specific type
2009-01-13Better usage of NetAddr::IPStephen Hemminger
Only get address once, and don't call new() directly, use in OO style.
2009-01-13Ignore IPV6 addresses in getInterfacesIPadressesStephen Hemminger
This routine is used by DHCP server and needs to ignore IPV6 addresses. NB: Does not fix bogus spellung.
2009-01-12Better version of getIPadresses and getInterfacesdebian/0.14.2Stephen Hemminger
Use new Vyatta::Interface and sysfs to avoid using ifconfig and ip command unnecessarily.
2009-01-12Use new interfaces routinesStephen Hemminger
Unify all code that does name -> interface attribute translation into one place. No need to pass interface path to scripts, and handle addresses correctly in DHCP code. Use 'undef' consitently for false in perl code.
2009-01-12Simplfy and cleanup misc interfacesStephen Hemminger
Use regex to identify legal IPV4 address, and get rid of perlcrtic warnings.
2009-01-12Use getservbyname to find portsStephen Hemminger
Rather than reading /etc/services directly, use the standard getservbyname function. This should be more efficient (uses dbm), and will work with other nameservices
2008-12-20Fix 3815: FW: Hyphenated port names treated as ranges in firewall rules.Stig Thormodsrud
2008-12-12Fix 3991: Unable to configure DHCP server on a multinetted interfaceZStig Thormodsrud
2008-12-01"show interfaces" broken. Use new perl hierarchy.Stig Thormodsrud
2008-11-25export getPortRuleStringStephen Hemminger
2008-11-21Convert VyattaConfig (et al) to Vyatta::ConfigStephen Hemminger
Use hierarchal directory structure