Age | Commit message (Collapse) | Author |
|
Use directory /etc/dhcp instead of /etc/dhcp3.
|
|
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
|
|
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
|
|
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
|
|
Update scripts/vyatta-interfaces.pl to maintain style consistency
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
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).
|
|
|
|
interface in the working config before allowing an address to be set on an interface, allows for swapping addresses in the same commit
|
|
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
|