Age | Commit message (Collapse) | Author |
|
Simpler to use new getIP() for all address fetching
|
|
Don't just silently exit on incorrect address format.
At least print an error
|
|
Bug 4311
Doing grep ($ip, @list) will return whole list since it evaluted
$ip as a expression and the result was defined.
|
|
If interface is down (because of release), then renew should still
be able restart interface.
|
|
More convient to do it here.
|
|
|
|
Remove duplicates from list, and make sure getIP is exported, and that
explicit imports are listed.
|
|
|
|
Need good way to find path to get current MTU.
|
|
|
|
|
|
Standard perl convention is undefined for false rather than 0.
|
|
Trying to have uniform library to interface state.
|
|
Extra comma in options hash list!
Get rid of perl function prototype for usage.
Perl Best Practices and other books recommend against them.
Move up exit to avoid surprises in later code.
|
|
For when templates want to check for interface but
not die.
|
|
|
|
|
|
|
|
Have one central place for validity checks.
|
|
When finding allwed VIF, want to show vif id not name.
|
|
Use new Vyatta::Interface mtu function to handle all interface
types with DHCP.
|
|
|
|
Many templates should allow any known interface type, since
interface may be created later. So create some generic hooks
for validation.
|
|
Unify all code that does name -> interface attribute translation
into one place. No need to pass interface path to scripts, and handle
addresses correctly in DHCP code. Use 'undef' consitently for false
in perl code.
|
|
htonl and if_nametoindex are not used.
|
|
Use hierarchal directory structure
|
|
interface has been disabled in CLI
|
|
|
|
|
|
|
|
Make sure and check if system commands worked.
|
|
Grep already has a count option, so use it.
|
|
Don't need to run a command to remove a file.
|
|
Don't need to call out to shell to create directory
|
|
Use perl to do the touch command.
|
|
Fix some assumptions in the vyatta-interfaces script that prevent
using dhcp on bonded devices
Bugfix 3835
|
|
Add more hacks to already fragile code that depends on interface
name. When next type is added this needs to be reworked.
Bugfix 3835
|
|
|
|
- also move temp files for release of dhcp interface to /var/run from /var/lib
|
|
Specified Value
- only request for dhcp-option interface-mtu from a dhcp-server for an ethernet interface using dhcp to get IP
- do not request for interface-mtu for other interfaces that use dhcp i.e. ethernet vifs and bridges
- request for interface-mtu from dhcp-server for ethernet interfaces, only if ethernet mtu not set in CLI
|
|
dhclient-script
|
|
array when no value is configured
=> Modified VyattaConfigLoad.pm to give a higher ranking to 'system host-name' than 'interface' so that during boot-up
if host is using dhcp client to get an ip for an interface, it can send the host-name if configured
=> Modified vyatta-interfaces.pl:
1. to request only for dhcp options 'subnet-nask', 'broadcast address', 'routers', 'domain-name-servers'
when an interface is configured to get an ip using dhcp.
2. ask for a domain-name only if domain-name is not configured in our CLI
3. do not request dhcp options: 'time-offset', 'interface-mtu' and 'host-name' that were being requested before
4. Update /etc/resolv.conf to remove domain-name and name-server options received from dhcp server for the
particular interface that releases dhcp lease either from op-mode or cfg-mode
|
|
|
|
|
|
implemented op-mode commands for DHCP client:
'release dhcp interface <>'
'renew dhcp interface <>'
|
|
interfaces,
use separate daemons for separate interfaces. when one daemon was handling all
interfaces, a release/renew at one interface would release/renew all other interfaces
as well before we brought them back to the state specified in vyatta config
-> Also, Fix bug 3346
replaced the die command with print followed by exit 1
-> modified vyatta-interfaces.pl to remove code for handling op-command:
'clear dhcp client process'
this command restarted the dhcp client daemon but now that we have separate
daemons for separate interfaces, this is not useful. Also, this will be
replaced by op-commands for 'dhcp client release lease' and 'dhcp client renew lease'
commands in hollywood beta
|
|
|
|
|
|
|
|
No longer need Tie or flock, these were used when dealing with watchlink
|