-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
158 additions
and
25 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
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
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
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
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
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
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
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
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
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 |
---|---|---|
|
@@ -16,6 +16,7 @@ attributes: | |
_alt_types: [ bool ] | ||
node: | ||
af: | ||
import: _r_import | ||
vrf: | ||
active: bool | ||
link: | ||
|
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,114 @@ | ||
--- | ||
message: | | ||
Use this topology to test the two-way redistribution between RIPv2 and OSPFv2/OSPFv3/BGP | ||
defaults.interfaces.mtu: 1500 | ||
|
||
addressing: | ||
loopback: | ||
ipv6: 2001:db8:1::/48 | ||
lan: | ||
ipv6: 2001:db8:2::/48 | ||
p2p: | ||
ipv6: 2001:db8:3::/48 | ||
|
||
groups: | ||
probes: | ||
device: frr | ||
provider: clab | ||
members: [ x1, r2, r3 ] | ||
|
||
nodes: | ||
dut: | ||
module: [ bgp, ripv2, ospf ] | ||
bgp.as: 65000 | ||
bgp.import: [ ripv2 ] | ||
ospf.import: [ ripv2 ] | ||
ripv2.import: [ bgp, ospf ] | ||
x1: | ||
bgp.as: 65100 | ||
module: [ bgp ] | ||
r2: | ||
module: [ ospf ] | ||
r3: | ||
module: [ ripv2 ] | ||
|
||
links: | ||
- r3 | ||
- dut-x1 | ||
- dut-r2 | ||
- dut-r3 | ||
|
||
validate: | ||
ipv4_ebgp: | ||
description: IPv4 EBGP session (X1-DUT) should be established | ||
wait_msg: Wait for EBGP session | ||
wait: 20 | ||
nodes: [ x1 ] | ||
plugin: bgp_neighbor(node.bgp.neighbors,'dut') | ||
ipv6_ebgp: | ||
description: IPv6 EBGP session (X1-DUT) should be established | ||
wait_msg: Wait for EBGP session | ||
wait: 20 | ||
nodes: [ x1 ] | ||
plugin: bgp_neighbor(node.bgp.neighbors,'dut',af='ipv6') | ||
ipv4_ospf: | ||
description: OSPF session (R2-DUT) should be established | ||
wait_msg: Wait for OSPF session | ||
wait: 20 | ||
nodes: [ r2 ] | ||
plugin: ospf_neighbor(nodes.dut.ospf.router_id) | ||
ipv6_ospf: | ||
description: OSPFv3 session (R2-DUT) should be established | ||
wait_msg: Wait for OSPF session | ||
wait: 30 | ||
nodes: [ r2 ] | ||
plugin: ospf6_neighbor(nodes.dut.ospf.router_id) | ||
rip_bgp_v4: | ||
description: Check whether X1 BGP IPv4 prefix is redistributed into RIP | ||
wait: 30 | ||
wait_msg: Waiting for the loopback prefix to be originated and redistributed | ||
nodes: [ r3 ] | ||
plugin: rt_prefix(pfx=nodes.x1.loopback.ipv4,af='ipv4',proto='rip') | ||
rip_bgp_v6: | ||
description: Check whether X1 BGP IPv6 prefix is redistributed into RIP | ||
wait: 10 | ||
wait_msg: Waiting for the loopback prefix to be originated and redistributed | ||
nodes: [ r3 ] | ||
plugin: rt_prefix(pfx=nodes.x1.loopback.ipv6,af='ipv6',proto='rip') | ||
rip_ospf_v4: | ||
description: Check whether R2 OSPF IPv4 prefix is redistributed into RIP | ||
wait: 15 | ||
wait_msg: Waiting for the loopback prefix to be originated and redistributed | ||
nodes: [ r3 ] | ||
plugin: rt_prefix(pfx=nodes.r2.loopback.ipv4,af='ipv4',proto='rip') | ||
rip_ospf_v6: | ||
description: Check whether R2 OSPF IPv6 prefix is redistributed into RIP | ||
wait: 10 | ||
wait_msg: Waiting for the loopback prefix to be originated and redistributed | ||
nodes: [ r3 ] | ||
plugin: rt_prefix(pfx=nodes.r2.loopback.ipv6,af='ipv6',proto='rip') | ||
ospf_v4: | ||
description: Check whether R3 RIP IPv4 prefix is redistributed into OSPF | ||
wait: 20 | ||
wait_msg: Waiting for the loopback prefix to be originated and redistributed | ||
nodes: [ r2 ] | ||
plugin: ospf_prefix(pfx=nodes.r3.loopback.ipv4) | ||
ospf_v6: | ||
description: Check whether R3 RIP IPv6 prefix is redistributed into OSPF | ||
wait: 10 | ||
wait_msg: Waiting for the loopback prefix to be originated and redistributed | ||
nodes: [ r2 ] | ||
plugin: ospf6_prefix(pfx=nodes.r3.interfaces[0].ipv6) | ||
bgp_v4: | ||
description: Check whether R3 RIP IPv4 prefix is redistributed into BGP | ||
wait: 5 | ||
wait_msg: Waiting for the loopback prefix to be originated and redistributed | ||
nodes: [ x1 ] | ||
plugin: bgp_prefix(pfx=nodes.r3.loopback.ipv4,af='ipv4') | ||
bgp_v6: | ||
description: Check whether R3 RIP IPv6 prefix is redistributed into BGP | ||
wait: 5 | ||
wait_msg: Waiting for the loopback prefix to be originated and redistributed | ||
nodes: [ x1 ] | ||
plugin: bgp_prefix(pfx=nodes.r3.interfaces[0].ipv6,af='ipv6') |