summaryrefslogtreecommitdiff
path: root/lib/Vyatta
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2009-09-11 18:06:08 -0700
committerMohit Mehta <mohit.mehta@vyatta.com>2009-09-15 13:52:26 -0700
commitae43f9275d59f2f3d5c283ee7f5e2254b838b847 (patch)
tree04b36bc41b216b2a5f59761e771997da8aaa86a1 /lib/Vyatta
parentc1f160a44e3c1a735ead34857de7d10062168a6c (diff)
downloadvyatta-cfg-ae43f9275d59f2f3d5c283ee7f5e2254b838b847.tar.gz
vyatta-cfg-ae43f9275d59f2f3d5c283ee7f5e2254b838b847.zip
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
Diffstat (limited to 'lib/Vyatta')
-rwxr-xr-xlib/Vyatta/Misc.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Vyatta/Misc.pm b/lib/Vyatta/Misc.pm
index 7f5e506..cdbbef9 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" );
}