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-11 18:06:08 -0700
commitd23cfb1136d025bfbe050d033df60529ae852b0e (patch)
tree748a8170b577acfbf156fcd579a1d2ca5c009898 /lib/Vyatta
parent6870f3dc627f8ec3711ae12b0ff26afa9b3ed0cd (diff)
downloadvyatta-cfg-d23cfb1136d025bfbe050d033df60529ae852b0e.tar.gz
vyatta-cfg-d23cfb1136d025bfbe050d033df60529ae852b0e.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 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" );
}