-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Add some tests to show new behavior works as expected
a) A noprefix address by itself should not create a connected route. This was pre-existing. b) A noprefix address with a corresponding route should result in a connected route. This is how NetworkManager appears to work. This is new behavior, so a new test. c) A route is added to the system from someone else. This is new behavior, so a new test. Signed-off-by: Donald Sharp <[email protected]>
- Loading branch information
1 parent
9bc0cd8
commit 37dd518
Showing
3 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
tests/topotests/zebra_multiple_connected/r1/ip_route_connected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"192.168.44.0/24":[ | ||
{ | ||
"prefix":"192.168.44.0/24", | ||
"prefixLen":24, | ||
"protocol":"connected", | ||
"vrfName":"default", | ||
"selected":true, | ||
"destSelected":true, | ||
"distance":0, | ||
"metric":0, | ||
"installed":true, | ||
"table":254, | ||
"nexthops":[ | ||
{ | ||
"fib":true, | ||
"directlyConnected":true, | ||
"interfaceName":"r1-eth1", | ||
"active":true | ||
} | ||
] | ||
} | ||
] | ||
} |
24 changes: 24 additions & 0 deletions
24
tests/topotests/zebra_multiple_connected/r1/ip_route_kernel.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"4.5.6.7/32":[ | ||
{ | ||
"prefix":"4.5.6.7/32", | ||
"prefixLen":32, | ||
"protocol":"kernel", | ||
"vrfName":"default", | ||
"selected":true, | ||
"destSelected":true, | ||
"distance":0, | ||
"metric":0, | ||
"installed":true, | ||
"table":254, | ||
"nexthops":[ | ||
{ | ||
"fib":true, | ||
"directlyConnected":true, | ||
"interfaceName":"r1-eth1", | ||
"active":true | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters