Age | Commit message (Collapse) | Author |
|
Bug 7063
Need to convert MAC octets from hex to numeric before doing
math operations.
|
|
If speed can not be determined then ospeed is undef.
|
|
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
|
|
is found.
|
|
* do not execute config-mode actions when called from op-mode
(cherry picked from commit c385ddc400788eff46f10fea6b57b593607dc290)
|
|
Put function in common code.
|
|
Interface addresses are now checked with other code.
|
|
Perl is no longer used for syntax checks, instead put duplicate address check
into commit.
|
|
The test for mixing dhcp and static ipv4 could cause perl warning
from comparing undefined with numeric.
|
|
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.
|
|
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.
|
|
Typo in sprintf (perl doesn't have %c).
Also improve error messages.
|
|
Bug 5552
For devices like Xen that don't do ethtool speed/duplex,
allow auto to work but produce error for any other value.
|
|
Bug 4994
Use ethtool to check for supported speed and duplex values on link.
|
|
In Debian Squeeze ethtool is in /sbin
|
|
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.
|
|
* "--path" option was using config dir directly.
* remove "--path" since it is unused.
|
|
No longer need sudo on ip because of cap_net_admin
|
|
Used to skip the existing interface name when doing mirror/redirect
|
|
|
|
|
|
Many virtual devices don't implement speed/duplex, so just ignore
any errors.
|
|
This fixes perlcritic warning because of using 2 arg open.
The other form puts pipe as method.
|
|
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.
|
|
Some devices might not report ethtool settings, but still
allow ethtool configuration of speed/duplex.
Bug 5466
|
|
die prints to standard error, so any interface failures show up
in error file during boot, rather than being lost in trace messages.
|
|
Bug 5331
|
|
If device doesn't support speed/duplex, then speed = auto which
is default is okay.
|
|
|
|
Bug 4994
If hardware does not have ethtool interface to allow setting speed/duplex,
then do not allow user to commit change.
|
|
All the other interface types are in vyatta-cfg-system, only
loopback and ethernet were in vyatta-cfg
|