summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Misc.pm
AgeCommit message (Collapse)Author
2010-07-30new API changesAn-Cheng Huang
2010-04-02Remove ifb device skippingStephen Hemminger
Rather than hiding ifb inside QoS, changing to make it a really useful device.
2010-03-29Ignore ifb devicesStephen Hemminger
IFB is a pseudo-device used for incoming traffic shaping. Hide it from show queueing output.
2010-03-29Allow reading interface description outside config modeStephen Hemminger
The Interface() object doesn't work for PPP in operational mode. So split out interface_description routine.
2010-03-24Merge branch 'larkspur' of http://git.vyatta.com/vyatta-cfg into larkspurStig Thormodsrud
2010-03-24Fix 5203: negation in firewall rule causes deprecation messageStig Thormodsrud
2010-03-19Need explicit return to guarantee returning falseStephen Hemminger
If perl function falls off the end, it will return the result of the last expression. For these functions, the idea was to return a false value; and it the return was missing.
2009-09-11Fix Bug 4919 "service dns" branch of configuration file missing ...Mohit Mehta
* use new API to get active 'original + commited' values * split 'dns forwarding' and 'dns dynamic' into different priorities
2009-08-13Skip more wireless interfacesStephen Hemminger
Hostapd creates mon.wlanX interfaces which are not something we need to make visible.
2009-08-12Skip wmaster interface in operational commandsStephen Hemminger
Ignore the bogus wmaster interface
2009-08-07check if port name is valid for both tcp and udp when protocol tcp_udpMohit Mehta
2009-07-10Fix 4623: Removing IPSEC VPN config without removing cluster ipsec config ↵Stig Thormodsrud
drops all interfaces. Only use substring if necessary. (cherry picked from commit abfbae9c05c6c7b4bccb2255d91a32ef1bccd1c1)
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