Skip to content

Commit

Permalink
ncm-network: Log debug when rewriting default route
Browse files Browse the repository at this point in the history
  • Loading branch information
jrha committed Sep 4, 2024
1 parent 6eab655 commit 7167a7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ncm-network/src/main/perl/nmstate.pm
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ sub make_nm_ip_route
};
my %rt;
if ($route->{address} eq 'default') {
$rt{destination} = '0.0.0.0/0';
$self->debug(3, "Route destination is 'default', rewriting to '0.0.0.0/0'");
$rt{destination} = '0.0.0.0/0';
} else {
if ($route->{netmask}){
my $dest_addr = NetAddr::IP->new($route->{address}."/".$route->{netmask});
Expand Down

0 comments on commit 7167a7a

Please sign in to comment.