vyos operation command 'renew dhcpv6 interface <interfaceName>' fails, with error
"DEBUG vexit_internal: calling cfgPathExists() without config session
calling cfgPathExists() without config session at /opt/vyatta/share/perl5/Vyatta/Config.pm line 82."
while the same command works within config session as 'run renew dhcpv6 interface <interfaceName>'
Reason: within script vyatta-dhcpv6-client.pl , function gen_conf_file is checking for 'duid' field
but during operation session this checking fails, and return error as above.
"Possible" patch for solution:
-- <unnamed> +++ vyatta-dhcpv6-client-new.pl @@ -57,10 +57,14 @@ my $config = new Vyatta::Config; $config->setLevel($level); - if ($config->exists('duid')) { - my $duid = $config->returnValue('duid'); - print $FD_WR " send dhcp6.client-id $duid;\n"; + if($config->inSession()) { + if ($config->exists('duid')) { + my $duid = $config->returnValue('duid'); + print $FD_WR " send dhcp6.client-id $duid;\n"; + } } # my $hostname = hostname; # print $FD_WR " send host-name \"$hostname\";\n"; # print $FD_WR " send dhcp6.oro 1, 2, 7, 12, 13, 23, 24