mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 10:54:47 +00:00
tests: bgp_l3vpn_to_bgp_vrf - verify details of exported/imported routes
Signed-off-by: Lou Berger <lberger@labn.net>
This commit is contained in:
parent
7946452bfc
commit
a69e5dd7ef
@ -476,3 +476,59 @@ want = [
|
||||
bgpribRequireUnicastRoutes(
|
||||
"ce4", "ipv4", "ce4-cust2", "Cust 2 routes from remote", want, debug=False
|
||||
)
|
||||
|
||||
#verify details of exported/imported routes
|
||||
luCommand("ce1",'vtysh -c "show bgp ipv4 uni 6.0.1.0"',
|
||||
"1 available.*192.168.1.1.*99.0.0.1.*Community: 0:67.*Extended Community: RT:89:123.*Large Community: 12:34:56",
|
||||
"pass", "Redundant route 1 details")
|
||||
luCommand("ce2",'vtysh -c "show bgp ipv4 uni 6.0.1.0"',
|
||||
"2 available, best .*192.168.1.1.* Local.* 192.168.1.1 from 192.168.1.1 .192.168.1.1" +
|
||||
".* Origin IGP, metric 98, localpref 123, valid, internal" +
|
||||
".* Community: 0:67.* Extended Community: RT:52:100 RT:89:123.* Large Community: 12:34:56",
|
||||
".* Local.* 99.0.0.2 from 0.0.0.0 .99.0.0.2" +
|
||||
".* Origin IGP, metric 100, localpref 100, weight 32768, valid, sourced, local, best .Weight" +
|
||||
".* Community: 0:67.* Extended Community: RT:89:123.* Large Community: 12:34:56",
|
||||
"pass", "Redundant route 1 details")
|
||||
luCommand("ce3",'vtysh -c "show bgp ipv4 uni 6.0.1.0"',
|
||||
"2 available, best .*192.168.1.1.* Local.* 99.0.0.3 from 0.0.0.0 .99.0.0.3" +
|
||||
".* Origin IGP, metric 200, localpref 50, weight 32768, valid, sourced, local, best .Weight" +
|
||||
".* Community: 0:67.* Extended Community: RT:89:123.* Large Community: 12:34:56" +
|
||||
".* Local.* 192.168.1.1 from 192.168.1.1 .192.168.1.1" +
|
||||
".* Origin IGP, metric 98, localpref 123, valid, internal" +
|
||||
".* Community: 0:67.* Extended Community: RT:52:100 RT:89:123.* Large Community: 12:34:56",
|
||||
"pass", "Redundant route 1 details")
|
||||
luCommand("ce4",'vtysh -c "show bgp vrf ce4-cust2 ipv4 6.0.1.0"',
|
||||
"2 available, best .*192.168.2.1.* Local.* 192.168.2.1 from 192.168.2.1 .192.168.2.1" +
|
||||
".* Origin IGP, metric 98, localpref 123, valid, internal" +
|
||||
".* Community: 0:67.* Extended Community: RT:52:100 RT:89:123.* Large Community: 12:34:56" +
|
||||
".* Local.* 99.0.0.4 from 0.0.0.0 .99.0.0.4" +
|
||||
".* Origin IGP, metric 200, localpref 50, weight 32768, valid, sourced, local, best .Weight" +
|
||||
".* Community: 0:67.* Extended Community: RT:89:123.* Large Community: 12:34:56",
|
||||
"pass", "Redundant route 1 details")
|
||||
|
||||
luCommand("ce1",'vtysh -c "show bgp ipv4 uni 6.0.2.0"',
|
||||
"1 available, best .*192.168.1.1.* Local.* 99.0.0.1 from 0.0.0.0 .99.0.0.1" +
|
||||
".* Origin IGP, metric 100, localpref 100, weight 32768, valid, sourced, local, best .First path received" +
|
||||
".* Community: 0:67.* Extended Community: RT:89:123.* Large Community: 12:34:11",
|
||||
"pass", "Redundant route 2 details")
|
||||
luCommand("ce2",'vtysh -c "show bgp ipv4 uni 6.0.2.0"', "1 available, best .*192.168.1.1.* Local.* 99.0.0.2 from 0.0.0.0 .99.0.0.2" +
|
||||
".* Origin IGP, metric 100, localpref 100, weight 32768, valid, sourced, local, best .First path received" +
|
||||
".* Community: 0:67.* Extended Community: RT:89:123.* Large Community: 12:34:12",
|
||||
"pass", "Redundant route 2 details")
|
||||
luCommand("ce3",'vtysh -c "show bgp ipv4 uni 6.0.2.0"',
|
||||
"2 available, best .*192.168.1.1.* Local.* 99.0.0.3 from 0.0.0.0 .99.0.0.3" +
|
||||
".* Origin IGP, metric 100, localpref 100, weight 32768, valid, sourced, local, best .Weight" +
|
||||
".* Community: 0:67.* Extended Community: RT:89:123.* Large Community: 12:34:13" +
|
||||
".* Local.* 192.168.1.1 from 192.168.1.1 .192.168.1.1" +
|
||||
".* Origin IGP, metric 100, localpref 100, valid, internal" +
|
||||
".* Community: 0:67.* Extended Community: RT:52:100 RT:89:123.* Large Community: 12:34:14",
|
||||
"pass", "Redundant route 2 details")
|
||||
luCommand("ce4",'vtysh -c "show bgp vrf ce4-cust2 ipv4 6.0.2.0"',
|
||||
"2 available, best .*192.168.2.1.* Local.* 192.168.2.1 from 192.168.2.1 .192.168.2.1" +
|
||||
".* Origin IGP, metric 100, localpref 100, valid, internal" +
|
||||
".* Community: 0:67.* Extended Community: RT:52:100 RT:89:123.* Large Community: 12:34:13" +
|
||||
".* Local.* 99.0.0.4 from 0.0.0.0 .99.0.0.4" +
|
||||
".* Origin IGP, metric 100, localpref 100, weight 32768, valid, sourced, local, best .Weight" +
|
||||
".* Community: 0:67.* Extended Community: RT:89:123.* Large Community: 12:34:14",
|
||||
"pass", "Redundant route 2 details")
|
||||
#done
|
||||
|
Loading…
Reference in New Issue
Block a user