Skip to content

Commit

Permalink
modifying toggle value
Browse files Browse the repository at this point in the history
  • Loading branch information
Jainpriyal committed Jul 5, 2016
1 parent 99b79c0 commit b69369f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/get_chassis_inventory/get_chassis_inventory.pl
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ sub print_response
}

my $query = "get_chassis_inventory";
my %queryargs = ( 'detail' => 1 );
my %queryargs = ( 'detail' => 'True' );

# send the command and get the server response
my $res = $jnx->$query(%queryargs);
Expand Down
2 changes: 1 addition & 1 deletion lib/Net/Netconf/Device.pm
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ sub generate_rpc

($tag = $field) =~ s/_/-/g;

if (ref($type) eq 'TOGGLE' || ref($value) eq 'TOGGLE') {
if (ref($type) eq 'TOGGLE' || ref($value) eq 'TOGGLE' || $value eq 'True') {
if ($value ne '0') {
$output .= " <$tag/>\n";
}
Expand Down

0 comments on commit b69369f

Please sign in to comment.