Skip to content

Commit

Permalink
ncm-network: Test additional IPv6 routes with nmstate
Browse files Browse the repository at this point in the history
  • Loading branch information
jrha committed Jul 11, 2024
1 parent ee70c1d commit 70ca971
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ncm-network/src/test/perl/nmstate_ipv6.t
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ routes:
- destination: ::/0
next-hop-address: 2001:678:123:e012::2
next-hop-interface: eth0
- destination: 2001:db8:10::/48
next-hop-interface: eth0
- destination: 2001:db8:20::/48
next-hop-interface: eth0
EOF

=pod
Expand Down
10 changes: 10 additions & 0 deletions ncm-network/src/test/resources/ipv6.pan
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ prefix "/system/network";
"interfaces/eth0/ipv6addr" = "2001:678:123:e012::45/64";
"interfaces/eth0/ipv6addr_secondaries" = list("2001:678:123:e012::46/64", "2001:678:123:e012::47/64");
"interfaces/eth0/ipv6_autoconf" = false; # boolean
"interfaces/eth0/route" = list(
dict(
"address", "2001:db8:10::",
"prefix", 64,
),
dict(
"address", "2001:db8:20::",
"prefix", 64,
),
);
"ipv6/default_gateway" = "2001:678:123:e012::2";
"ipv6/gatewaydev" = "eth0";
"ipv6/enabled" = true;

0 comments on commit 70ca971

Please sign in to comment.