summaryrefslogtreecommitdiff
path: root/scripts/vyatta-interfaces.pl
AgeCommit message (Collapse)Author
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