summaryrefslogtreecommitdiff
path: root/scripts/vyatta-interfaces.pl
AgeCommit message (Collapse)Author
2016-02-09Use directory /var/lib/dhcp instead of /var/lib/dhcp3.Kim Hagen
Use directory /etc/dhcp instead of /etc/dhcp3.
2015-11-08vyatta-cfg-system: add option to modify interface scatter-gather optionAlex Harpin
Allow the setting of the interfaces scatter-gather offload setting. This is useful for working around hardware related NIC problems and enables it to be set directly in the configuration. Bug #526 http://bugzilla.vyos.net/show_bug.cgi?id=526
2015-11-08vyatta-cfg-system: update get_offload_option function due to renameAlex Harpin
Update the get_offload_option function to take account of the offload node renaming. Bug #612 http://bugzilla.vyos.net/show_bug.cgi?id=612
2015-11-08vyatta-cfg-system: rename ethernet offload option nodesAlex Harpin
Updates to the changes committed in connection with Bug #365 to allow a workaround for Xen based network issues. https://github.com/vyos/vyatta-cfg-system/commit/7a5a8500091589f0ede3d5a1dbc8b6b4b3fabf1d Rename the offload configuration node to offload-options, shorten the child node names, rename offload-settings to offload-option and add a more descriptive error message if an option fails to apply to the interface. Bug #612 http://bugzilla.vyos.net/show_bug.cgi?id=612
2015-11-08vyatta-cfg-system: formatting changes for style consistencyAlex Harpin
Update scripts/vyatta-interfaces.pl to maintain style consistency
2014-10-29Removing unsed variable from declarationJason Hendry
2014-10-29Correcting udp offload option name form segmentation to fragmentationJason Hendry
2014-10-29Cleaning up ethtool execution codeJason Hendry
2014-10-29Updating comments so they make a bit more senseJason Hendry
2014-10-29Making offload setting changes change on a single optionJason Hendry
2014-10-28Adding offload setting management to vyatta-interfaces.plJason Hendry
2012-06-22Use hash map of addresses to interfacesStephen Hemminger
Other part of fix for Bz 8171 Create a hash of address => interfaces in configuration and use it during address commit check. Remove unused creation of list of current addresses. This might speed boot with large number of interfaces. Since the hash is made once per interface rather than multiple times, it might be faster because of that as well.
2011-12-14Verify user defined mac addresses are not VRRP mac addressesJohn Southworth
2011-12-05make vyatta-interfaces.pl aware of vrrp interfacesJohn Southworth
2011-08-23Bugfix 7461: Fix syntax problem when setting a mac addressJohn Southworth
2011-08-05ethernet: avoid needlessly setting mac addressStephen Hemminger
Bug 7408 Only set mac address if it is different, and try first with link up (many drivers allow it). Don't use hw-id as mac address, hw-id is meant for corelating names with addresses (in udev).
2011-07-05Move the is_uniq_address function to Interface.pmJohn Southworth
2011-07-01bugfix 6801: check to see if the same address is configured on another ↵John Southworth
interface in the working config before allowing an address to be set on an interface, allows for swapping addresses in the same commit
2011-05-09Convert mac octets from hexStephen Hemminger
Bug 7063 Need to convert MAC octets from hex to numeric before doing math operations.
2011-03-25Fix use of uninitialized ospeedStephen Hemminger
If speed can not be determined then ospeed is undef.
2011-03-11Speed/duplex setup improvementsStephen Hemminger
Bug 6906 1. Fix parsing of 'Unknown' Speed in regex 2. Don't error if device can not get current speed/duplex 3. Do error if ethtool fails when setting speed/duplex
2011-03-10fix for bug 6081. Warning, but allow commit to proceed if duplicate address ↵Michael Larson
is found.
2011-01-31Fix Bug 6696 Internal error for release/renew dhcp interface under op modeMohit Mehta
* do not execute config-mode actions when called from op-mode (cherry picked from commit c385ddc400788eff46f10fea6b57b593607dc290)
2010-12-06Move touch() perl to Vyatta::FileStephen Hemminger
Put function in common code.
2010-11-30Remove old code for address insertion/deletion/validationStephen Hemminger
Interface addresses are now checked with other code.
2010-11-30Add duplicate address check on commitStephen Hemminger
Perl is no longer used for syntax checks, instead put duplicate address check into commit.
2010-11-29Fix use of undefined in comparisonStephen Hemminger
The test for mixing dhcp and static ipv4 could cause perl warning from comparing undefined with numeric.
2010-11-22Use script vyatta-address to set interfaceStephen Hemminger
Avoid the overhead of perl compilation of vyatta-interfaces for each address added. Handle the case of deleting address on deleted device cleanly. Clean up dhcpv6 script so it can be used on interfaces other than ethernet.
2010-11-17Add check for adding bridge-group and bond-group when setting addressStephen Hemminger
Bug 4745 Block putting address on interface that is part of a bridge (or bonding). Address should only be assigned to the master device, not the slave. Also changes messge on error since CLI now displays error location.
2010-11-12Fix is_supported_speed matchingStephen Hemminger
Typo in sprintf (perl doesn't have %c). Also improve error messages.
2010-11-08Don't produce warnings for drivers that don't support ethtoolStephen Hemminger
Bug 5552 For devices like Xen that don't do ethtool speed/duplex, allow auto to work but produce error for any other value.
2010-11-08Check speed and duplex settings on Ethernet interfacesStephen Hemminger
Bug 4994 Use ethtool to check for supported speed and duplex values on link.
2010-11-08Fix path to ethtoolStephen Hemminger
In Debian Squeeze ethtool is in /sbin
2010-08-31Bugfix 5499: Fix restrictions on IPv6 addresses.Bob Gilligan
The code previously prevented the user from assigning the all-zeros or the all-ones IPv6 host addresses on a subnet. These addresses are not illegal in IPv6. This commit removes that restriction, and adds checks for some IPv6 addresses that are illegal to be assigned to an interface.
2010-08-16remove low-level config dir usageAn-Cheng Huang
* "--path" option was using config dir directly. * remove "--path" since it is unused.
2010-06-15Remove sudo from ip commandStephen Hemminger
No longer need sudo on ip because of cap_net_admin
2010-06-07Add skip option to vyatta-interfacesStephen Hemminger
Used to skip the existing interface name when doing mirror/redirect
2010-05-26Move DHCPv6 client configuration to this package and restructre parameters.Bob Gilligan
2010-04-05Merge branch 'larkspur' of vm:git/vyatta-cfg-system into larkspurStephen Hemminger
2010-04-05Ignore errors from ethtool when setting speed/duplexStephen Hemminger
Many virtual devices don't implement speed/duplex, so just ignore any errors.
2010-04-05Use 3 arg openStephen Hemminger
This fixes perlcritic warning because of using 2 arg open. The other form puts pipe as method.
2010-04-02Fail gracefully if path is unknownStephen Hemminger
If device is ppp but not in Vyatta config, the configuration path will be undefined. So have script give reasonable error rather than perl undefined variable message.
2010-03-17Handle devices that do not report ethtoolStephen Hemminger
Some devices might not report ethtool settings, but still allow ethtool configuration of speed/duplex. Bug 5466
2010-02-16Use die function for failuresStephen Hemminger
die prints to standard error, so any interface failures show up in error file during boot, rather than being lost in trace messages.
2010-02-16Add syntax check for vif name where non-vif expectedStephen Hemminger
Bug 5331
2009-12-23Handle default of autoStephen Hemminger
If device doesn't support speed/duplex, then speed = auto which is default is okay.
2009-12-22Fix return of dhcp start client.Stephen Hemminger
2009-12-21Don't allow setting speed/duplex if hardware doesn't support itStephen Hemminger
Bug 4994 If hardware does not have ethtool interface to allow setting speed/duplex, then do not allow user to commit change.
2009-12-21Move interface support from vyatta-cfg to vyatta-cfg-systemStephen Hemminger
All the other interface types are in vyatta-cfg-system, only loopback and ethernet were in vyatta-cfg