From d23cfb1136d025bfbe050d033df60529ae852b0e Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Fri, 11 Sep 2009 18:06:08 -0700 Subject: Fix Bug 4919 "service dns" branch of configuration file missing ... * use new API to get active 'original + commited' values * split 'dns forwarding' and 'dns dynamic' into different priorities --- lib/Vyatta/Misc.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Vyatta/Misc.pm b/lib/Vyatta/Misc.pm index 6089361..77c6218 100755 --- a/lib/Vyatta/Misc.pm +++ b/lib/Vyatta/Misc.pm @@ -58,7 +58,7 @@ sub is_dhcp_enabled { if ($outside_cli); $config->setLevel( $intf->path() ); - foreach my $addr ( $config->returnOrigValues('address') ) { + foreach my $addr ( $config->returnOrigPlusComValues('address') ) { return 1 if ( $addr && $addr eq "dhcp" ); } -- cgit v1.2.3