forked from FRRouting/frr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
topotests: isis_topo1_vrf, align json support on 'show isis topology'…
… command Add the json support from ISIS vty command. > show isis vrf vrf1 topology json Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
- Loading branch information
1 parent
cd68ea3
commit ea6ad95
Showing
6 changed files
with
571 additions
and
585 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,80 +1,82 @@ | ||
{ | ||
"1": { | ||
"level-1": { | ||
"ipv4": [ | ||
{ | ||
"vertex": "r1" | ||
} | ||
], | ||
"ipv6": [ | ||
{ | ||
"vertex": "r1" | ||
} | ||
] | ||
}, | ||
"level-2": { | ||
"ipv4": [ | ||
{ | ||
"vertex": "r1" | ||
}, | ||
{ | ||
"metric": "0", | ||
"parent": "r1(4)", | ||
"type": "IP internal", | ||
"vertex": "10.0.20.0/24" | ||
}, | ||
{ | ||
"interface": "r1-eth0", | ||
"metric": "10", | ||
"next-hop": "r3", | ||
"parent": "r1(4)", | ||
"type": "TE-IS", | ||
"vertex": "r3" | ||
}, | ||
{ | ||
"interface": "r1-eth0", | ||
"metric": "10", | ||
"next-hop": "r3", | ||
"parent": "r3(4)", | ||
"type": "IP TE", | ||
"vertex": "10.0.20.0/24" | ||
}, | ||
{ | ||
"interface": "r1-eth0", | ||
"metric": "10", | ||
"next-hop": "r3", | ||
"parent": "r3(4)", | ||
"type": "IP TE", | ||
"vertex": "10.0.10.0/24" | ||
} | ||
], | ||
"ipv6": [ | ||
{ | ||
"vertex": "r1" | ||
}, | ||
{ | ||
"metric": "0", | ||
"parent": "r1(4)", | ||
"type": "IP6 internal", | ||
"vertex": "2001:db8:1:1::/64" | ||
}, | ||
{ | ||
"interface": "r1-eth0", | ||
"metric": "10", | ||
"next-hop": "r3", | ||
"parent": "r1(4)", | ||
"type": "TE-IS", | ||
"vertex": "r3" | ||
[ | ||
{ | ||
"area": "1", | ||
"algorithm": 0, | ||
"level-1": { | ||
"ipv4-paths": [ | ||
{ | ||
"Vertex": "r1" | ||
} | ||
], | ||
"ipv6-paths": [ | ||
{ | ||
"Vertex": "r1" | ||
} | ||
] | ||
}, | ||
{ | ||
"metric": "10", | ||
"interface": "r1-eth0", | ||
"next-hop": "r3", | ||
"parent": "r3(4)", | ||
"type": "IP6 internal", | ||
"vertex": "2001:db8:2:1::/64" | ||
"level-2": { | ||
"ipv4-paths": [ | ||
{ | ||
"Vertex": "r1" | ||
}, | ||
{ | ||
"Metric": 0, | ||
"Parent": "r1(4)", | ||
"Type": "IP internal", | ||
"Vertex": "10.0.20.0/24" | ||
}, | ||
{ | ||
"Interface": "r1-eth0", | ||
"Metric": 10, | ||
"Next-Hop": "r3", | ||
"Parent": "r1(4)", | ||
"Type": "TE-IS", | ||
"Vertex": "r3" | ||
}, | ||
{ | ||
"Interface": "r1-eth0", | ||
"Metric": 10, | ||
"Next-Hop": "r3", | ||
"Parent": "r3(4)", | ||
"Type": "IP TE", | ||
"Vertex": "10.0.10.0/24" | ||
}, | ||
{ | ||
"Interface": "r1-eth0", | ||
"Metric": 10, | ||
"Next-Hop": "r3", | ||
"Parent": "r3(4)", | ||
"Type": "IP TE", | ||
"Vertex": "10.0.20.0/24" | ||
} | ||
], | ||
"ipv6-paths": [ | ||
{ | ||
"Vertex": "r1" | ||
}, | ||
{ | ||
"Metric": 0, | ||
"Parent": "r1(4)", | ||
"Type": "IP6 internal", | ||
"Vertex": "2001:db8:1:1::/64" | ||
}, | ||
{ | ||
"Interface": "r1-eth0", | ||
"Metric": 10, | ||
"Next-Hop": "r3", | ||
"Parent": "r1(4)", | ||
"Type": "TE-IS", | ||
"Vertex": "r3" | ||
}, | ||
{ | ||
"Metric": 10, | ||
"Interface": "r1-eth0", | ||
"Next-Hop": "r3", | ||
"Parent": "r3(4)", | ||
"Type": "IP6 internal", | ||
"Vertex": "2001:db8:2:1::/64" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] |
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 |
---|---|---|
@@ -1,80 +1,82 @@ | ||
{ | ||
"1": { | ||
"level-1": { | ||
"ipv4": [ | ||
{ | ||
"vertex": "r2" | ||
} | ||
], | ||
"ipv6": [ | ||
{ | ||
"vertex": "r2" | ||
} | ||
] | ||
}, | ||
"level-2": { | ||
"ipv4": [ | ||
{ | ||
"vertex": "r2" | ||
}, | ||
{ | ||
"metric": "0", | ||
"parent": "r2(4)", | ||
"type": "IP internal", | ||
"vertex": "10.0.21.0/24" | ||
}, | ||
{ | ||
"interface": "r2-eth0", | ||
"metric": "10", | ||
"next-hop": "r4", | ||
"parent": "r2(4)", | ||
"type": "TE-IS", | ||
"vertex": "r4" | ||
}, | ||
{ | ||
"interface": "r2-eth0", | ||
"metric": "10", | ||
"next-hop": "r4", | ||
"parent": "r4(4)", | ||
"type": "IP TE", | ||
"vertex": "10.0.21.0/24" | ||
}, | ||
{ | ||
"interface": "r2-eth0", | ||
"metric": "10", | ||
"next-hop": "r4", | ||
"parent": "r4(4)", | ||
"type": "IP TE", | ||
"vertex": "10.0.11.0/24" | ||
} | ||
], | ||
"ipv6": [ | ||
{ | ||
"vertex": "r2" | ||
}, | ||
{ | ||
"metric": "0", | ||
"parent": "r2(4)", | ||
"type": "IP6 internal", | ||
"vertex": "2001:db8:1:2::/64" | ||
}, | ||
{ | ||
"interface": "r2-eth0", | ||
"metric": "10", | ||
"next-hop": "r4", | ||
"parent": "r2(4)", | ||
"type": "TE-IS", | ||
"vertex": "r4" | ||
[ | ||
{ | ||
"area": "1", | ||
"algorithm": 0, | ||
"level-1": { | ||
"ipv4-paths": [ | ||
{ | ||
"Vertex": "r2" | ||
} | ||
], | ||
"ipv6-paths": [ | ||
{ | ||
"Vertex": "r2" | ||
} | ||
] | ||
}, | ||
{ | ||
"metric": "10", | ||
"interface": "r2-eth0", | ||
"next-hop": "r4", | ||
"parent": "r4(4)", | ||
"type": "IP6 internal", | ||
"vertex": "2001:db8:2:2::/64" | ||
"level-2": { | ||
"ipv4-paths": [ | ||
{ | ||
"Vertex": "r2" | ||
}, | ||
{ | ||
"Metric": 0, | ||
"Parent": "r2(4)", | ||
"Type": "IP internal", | ||
"Vertex": "10.0.21.0/24" | ||
}, | ||
{ | ||
"Interface": "r2-eth0", | ||
"Metric": 10, | ||
"Next-Hop": "r4", | ||
"Parent": "r2(4)", | ||
"Type": "TE-IS", | ||
"Vertex": "r4" | ||
}, | ||
{ | ||
"Interface": "r2-eth0", | ||
"Metric": 10, | ||
"Next-Hop": "r4", | ||
"Parent": "r4(4)", | ||
"Type": "IP TE", | ||
"Vertex": "10.0.11.0/24" | ||
}, | ||
{ | ||
"Interface": "r2-eth0", | ||
"Metric": 10, | ||
"Next-Hop": "r4", | ||
"Parent": "r4(4)", | ||
"Type": "IP TE", | ||
"Vertex": "10.0.21.0/24" | ||
} | ||
], | ||
"ipv6-paths": [ | ||
{ | ||
"Vertex": "r2" | ||
}, | ||
{ | ||
"Metric": 0, | ||
"Parent": "r2(4)", | ||
"Type": "IP6 internal", | ||
"Vertex": "2001:db8:1:2::/64" | ||
}, | ||
{ | ||
"Interface": "r2-eth0", | ||
"Metric": 10, | ||
"Next-Hop": "r4", | ||
"Parent": "r2(4)", | ||
"Type": "TE-IS", | ||
"Vertex": "r4" | ||
}, | ||
{ | ||
"Metric": 10, | ||
"Interface": "r2-eth0", | ||
"Next-Hop": "r4", | ||
"Parent": "r4(4)", | ||
"Type": "IP6 internal", | ||
"Vertex": "2001:db8:2:2::/64" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] |
Oops, something went wrong.