summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2020-02-28Interface: T2080: adjust to denesting of PPPoEChristian Poessinger
2018-10-21Move systemd mods to /lib directoryUnicronNL
Remove redundant my_commit check Do not show output on serial-getty (double output issue)
2016-02-24Fix "Subroutine Vyatta::Misc::sockaddr_in6 redefined at" message.Kim Hagen
2016-02-09Use dhcp instead of dhcp3.Kim Hagen
2015-10-17vyatta-cfg: add port checking routine to misc.pmAlex Harpin
Add a port checking routine to Vyatta/Misc.pm to allow commits to check if a port is currently in use before allowing them. This is in connection with Bug #43, where no port checking was done on commit.
2015-02-15vyatta-cfg: update is_primary_address for vtun and wan interfacesAlex Harpin
Expand the matching done in is_primary_address to account for the fact that the output from "ip address show" is different for vtun and wan interfaces; add a separate check for these interfaces. Bug #488 http://bugzilla.vyos.net/show_bug.cgi?id=488
2015-02-15vyatta-cfg: update get_ipaddr_int_hash for vtun and wan interfacesAlex Harpin
Expand the matching done in get_ipaddr_int_hash to account for the fact that the output from "ip addr show" is different for vtun and wan interfaces; add a separate check for these interfaces. Bug #35 http://bugzilla.vyos.net/show_bug.cgi?id=35
2015-02-08vyatta-cfg: set the path for a vrrp interface correctlyAlex Harpin
Update the path set when the interface in question is a VRRP so it points to vrrp vrrp-group vrid rather than vrrp vrid. Along with the patch for bug #7, this now shows the description correctly for a VRRP interface. Bug #130 http://bugzilla.vyos.net/show_bug.cgi?id=130
2014-10-08Add QinQ support to the intf name to path function.Daniil Baturin
2014-10-06vyatta-cfg: return correct path for pppoe or pppoa interfacesAlex Harpin
Fix for the _ppp_int function so it returns the actual ethernet interface associated with the ppp device rather than an empty string. As a result the path function now returns the correct configuration path for the interface. Linked to Bug #321 http://bugzilla.vyos.net/show_bug.cgi?id=321 Bug #333 http://bugzilla.vyos.net/show_bug.cgi?id=333
2014-10-06vyatta-cfg: formatting changes for style consistencyAlex Harpin
Update lib/Vyatta/Interface.pm to have consistent identation levels and style throughout.
2014-09-14vyatta-cfg: display openvpn interface descriptions after they resetAlex Harpin
When OpenVPN tunnels are taken down and recreated by the OpenVPN process, any previously set descriptions on the interfaces are missing. This is caused by the fact that the ifalias for that interface isn't readded when the interface is recreated. This patch updates the interface_description function so that it either returns the current value of ifalias if it's set on the interface, or uses the value set in the active config if it's present. Bug #7 http://bugzilla.vyos.net/show_bug.cgi?id=7 Bug #313 http://bugzilla.vyos.net/show_bug.cgi?id=313
2014-09-14vyatta-cfg: formatting changes for style consistencyAlex Harpin
Update lib/Vyatta/Misc.pm to have consistent identation levels and style throughout.
2014-03-18Add support for l2tpv3higebu
2013-05-16Add isMultiNode perl CLI APIJames Davidson
2012-09-24Fix get_terminal_size redefinition warningJames Davidson
Also squelch warnings from requiring features.ph (via ioctl.ph). Fixes bug 8387
2012-08-14Rewrite interface prefix matchingStephen Hemminger
Bug 8279 Read network device name prefixes from file.
2012-08-01Add support for vswitchStephen Hemminger
Placeholder for possible future work.
2012-06-26Make dataplane matching less restrictiveStephen Hemminger
Anything starting with dp[0-9] is a dataplane interface
2012-06-22Add new function to find hash of configured addressesStephen Hemminger
Useful to optimize lookup and resolve issue in Bz 8171
2012-06-22More indentation cleanupStephen Hemminger
Use indent of 4
2012-06-22Make indentation consistentStephen Hemminger
Use indent of 4 and break long lines.
2012-06-21Simplify name matching regexStephen Hemminger
Turns out that [\d]+ is same as \d+ since \d is the class of all digits and [] is the set operator
2012-06-21Allow dataplane interface name dp0em0Stephen Hemminger
2012-06-21Remove trailing whitespaceStephen Hemminger
Extra whitespace causes git to complain when integrating patches.
2012-06-18ioctl interface improvementsStephen Hemminger
Do some minor enhancements for usability. * export get_terminal_size and get_interface_flags * handle case where /dev/tty is inaccessible * turn on warnings in this code
2012-05-16Merge branch 'pacifica' of http://git.vyatta.com/vyatta-cfg into pacificaSaurabh Mohan
2012-05-16Support for VTI.Saurabh Mohan
2012-05-15Move VRRP to its own packageJohn Southworth
2012-05-10Fix variable use in last commitJohn Southworth
2012-05-10Bugfix 8079: fix require sys/ioctl.ph confilctsJohn Southworth
perl only allows a require to be done once. If it is done in two included modules the module or function in the module used second doesn't have the data in the required file in its scope. To prevent this I created a third module that contains the functions that require 'sys/ioctl.ph' so that there is no longer a conflict.
2012-05-09Add functions to get calling terminal size to Vyatta::MiscJohn Southworth
2012-05-07Enable snmp support for vrrpJohn Southworth
2012-04-30Match from beginning of the line for multilink deviceJohn Southworth
2012-04-30Bugfix 8017:John Southworth
Make parsing of multilink config options work properly. Multilink interfaces have one allowed vif. They do not show up with the same way as all the other vifs on the system, i.e. <if>.<vif>. In order for scripts using a generic config path parsing mechanism to work with multilink interfaces we must return the path with 'vif 1' appended after 'mlX' e.g. 'interfaces multilink mlX vif 1' is the proper path for options under the 'interface multilink mlX' tree.
2012-04-09Use ioctl() to read interface flagsStephen Hemminger
Bug 8006 Interface running state is only visible through ioctl() or netlink. The flag is not exported via sysfs properly.
2012-03-22adjust pppoe interface detection for non-userlandJohn Southworth
2011-12-16Add support for dataplane configStephen Hemminger
2011-12-12Adjust default displayed priority to reflect actual default priorityJohn Southworth
2011-12-06Fix source address display problem in address owner case for vrrpJohn Southworth
2011-12-05Fix typo in vrid split in Interfaces moduleJohn Southworth
2011-12-05Fix bug in vrrp interface handlingJohn Southworth
2011-12-02Add vrrp interface support to Interface libraryJohn Southworth
2011-11-28Merge branch 'oxnard' of http://git.vyatta.com/vyatta-cfg into oxnardBob Gilligan
2011-11-28Return vmac interface configuration state in vrrp_get_config()Bob Gilligan
2011-11-14Bug 7411: exporting isValidPortNumber API from Misc.pm, used in conntrack ↵Gaurav Sinha
for validating ports entered
2011-11-01vrrp restart not working. fix pid filename for 1.2.2Stig Thormodsrud
(cherry picked from commit 9cc533d34fdef09d69f4fccdaaaee0724bf11f2d)
2011-10-12Provide accessor for the net_prefix hashJohn Southworth
2011-07-05Move the is_uniq_address function to Interface.pmJohn Southworth
2011-05-04Fix Bug 7010 Update commands to save/retrieve files from /configMohit Mehta
* use shorter /config path when presenting configuration directory to users