diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-06-26 16:34:42 +0000 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-06-26 16:34:42 +0000 |
commit | d58ea68e07ac987e642947ceabe3dd87ecdb22ad (patch) | |
tree | 17f6587ac5a7d045dd7473adee2a53b8edb565e3 /scripts/VyattaConfigLoad.pm | |
parent | 3f41fcca673762ff27328192036719eace6b6495 (diff) | |
download | vyatta-cfg-d58ea68e07ac987e642947ceabe3dd87ecdb22ad.tar.gz vyatta-cfg-d58ea68e07ac987e642947ceabe3dd87ecdb22ad.zip |
=> Modified VyattaConfig.pm function 'returnOrigValues()' to return empty 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
Diffstat (limited to 'scripts/VyattaConfigLoad.pm')
-rwxr-xr-x | scripts/VyattaConfigLoad.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/VyattaConfigLoad.pm b/scripts/VyattaConfigLoad.pm index 1a7f26e..71203be 100755 --- a/scripts/VyattaConfigLoad.pm +++ b/scripts/VyattaConfigLoad.pm @@ -32,6 +32,7 @@ my %config_rank = ( 'qos-policy' => 1100, 'firewall' => 1020, 'service nat' => 1010, + 'system host-name' => 1005, 'interfaces' => 1000, 'interfaces bridge' => 990, 'interfaces ethernet' => 980, |