diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-11-21 17:05:44 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-11-21 17:05:44 -0800 |
commit | 62af8baf3a696f774430117927440c114248a81d (patch) | |
tree | 77956280017b2dff1c06e29d9c04b096f68bc552 /scripts/netplug | |
parent | 5021e2073b50f3f2022d19c07870b11604548689 (diff) | |
download | vyatta-cfg-system-62af8baf3a696f774430117927440c114248a81d.tar.gz vyatta-cfg-system-62af8baf3a696f774430117927440c114248a81d.zip |
Convert to Vyatta::Config hierarchy
Diffstat (limited to 'scripts/netplug')
-rwxr-xr-x | scripts/netplug/linkdown/dhclient | 8 | ||||
-rwxr-xr-x | scripts/netplug/linkup/dhclient | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/scripts/netplug/linkdown/dhclient b/scripts/netplug/linkdown/dhclient index 21623a8d..a69caed3 100755 --- a/scripts/netplug/linkdown/dhclient +++ b/scripts/netplug/linkdown/dhclient @@ -31,8 +31,8 @@ # use lib "/opt/vyatta/share/perl5/"; -use VyattaConfig; -use VyattaMisc; +use Vyatta::Config; +use Vyatta::Misc; use strict; use warnings; @@ -40,7 +40,7 @@ use warnings; sub stop_dhclient { my $intf = shift; my $dhcp_daemon = '/sbin/dhclient'; - my ($intf_config_file, $intf_process_id_file, $intf_leases_file) = VyattaMisc::generate_dhclient_intf_files($intf); + my ($intf_config_file, $intf_process_id_file, $intf_leases_file) = Vyatta::Misc::generate_dhclient_intf_files($intf); my $release_cmd = "sudo $dhcp_daemon -q -cf $intf_config_file -pf $intf_process_id_file -lf $intf_leases_file -r $intf 2> /dev/null"; system ($release_cmd); } @@ -53,7 +53,7 @@ sub stop_dhclient { my $dev=shift; # only do this if interface is configured to use dhcp for getting IP address -if (VyattaMisc::is_dhcp_enabled($dev, "outside_cli")) { +if (Vyatta::Misc::is_dhcp_enabled($dev, "outside_cli")) { # do a dhcp lease release for interface stop_dhclient($dev); } diff --git a/scripts/netplug/linkup/dhclient b/scripts/netplug/linkup/dhclient index 574b994f..c7370841 100755 --- a/scripts/netplug/linkup/dhclient +++ b/scripts/netplug/linkup/dhclient @@ -31,8 +31,8 @@ # use lib "/opt/vyatta/share/perl5/"; -use VyattaConfig; -use VyattaMisc; +use Vyatta::Config; +use Vyatta::Misc; use strict; use warnings; @@ -40,7 +40,7 @@ use warnings; sub run_dhclient { my $intf = shift; my $dhcp_daemon = '/sbin/dhclient'; - my ($intf_config_file, $intf_process_id_file, $intf_leases_file) = VyattaMisc::generate_dhclient_intf_files($intf); + my ($intf_config_file, $intf_process_id_file, $intf_leases_file) = Vyatta::Misc::generate_dhclient_intf_files($intf); my $cmd = "sudo $dhcp_daemon -q -nw -cf $intf_config_file -pf $intf_process_id_file -lf $intf_leases_file $intf 2> /dev/null &"; system ($cmd); } @@ -52,7 +52,7 @@ sub run_dhclient { my $dev=shift; # only do this if interface is configured to use dhcp for getting IP address -if (VyattaMisc::is_dhcp_enabled($dev, "outside_cli")) { +if (Vyatta::Misc::is_dhcp_enabled($dev, "outside_cli")) { # do a dhcp lease renew for interface run_dhclient($dev); } |