Skip to content

Commit 4ed54aa

Browse files
committed
Updated path tests based on new logic
Signed-off-by: Dinesh Dutt <[email protected]>
1 parent d415b7b commit 4ed54aa

File tree

4 files changed

+450
-8
lines changed

4 files changed

+450
-8
lines changed

tests/integration/sqcmds/cumulus-samples/path.yml

Lines changed: 110 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1959,9 +1959,111 @@ tests:
19591959
- command: path show --dest=172.16.2.104 --src=172.16.1.104 --namespace=dual-evpn
19601960
--format=json
19611961
data-directory: tests/data/parquet/
1962-
error:
1963-
error: '[{"error": "ERROR: Invalid src 172.16.1.104"}]'
19641962
marks: path show cumulus
1963+
output: '[{"pathid": 1, "hopCount": 0, "namespace": "dual-evpn", "hostname": "exit01",
1964+
"iif": "vlan13", "oif": "swp1", "vrf": "evpn-vrf", "isL2": false, "overlay": false,
1965+
"mtuMatch": true, "inMtu": 9000, "outMtu": 9216, "protocol": "kernel", "ipLookup":
1966+
"172.16.2.0/24", "vtepLookup": "10.0.0.134", "macLookup": "", "nexthopIp": "169.254.0.1",
1967+
"hopError": "", "timestamp": 1616644822008}, {"pathid": 1, "hopCount": 1, "namespace":
1968+
"dual-evpn", "hostname": "spine01", "iif": "swp6", "oif": "swp3", "vrf": "default",
1969+
"isL2": true, "overlay": true, "mtuMatch": true, "inMtu": 9216, "outMtu": 9216,
1970+
"protocol": "bgp", "ipLookup": "10.0.0.134", "vtepLookup": "", "macLookup": null,
1971+
"nexthopIp": "", "hopError": "", "timestamp": 1616644822008}, {"pathid": 1, "hopCount":
1972+
2, "namespace": "dual-evpn", "hostname": "leaf03", "iif": "swp1", "oif": "bond02",
1973+
"vrf": "default", "isL2": false, "overlay": false, "mtuMatch": false, "inMtu":
1974+
1500, "outMtu": 1500, "protocol": "", "ipLookup": "", "vtepLookup": "", "macLookup":
1975+
"", "nexthopIp": "", "hopError": "Dst MTU != Src MTU", "timestamp": 1616644822941},
1976+
{"pathid": 2, "hopCount": 0, "namespace": "dual-evpn", "hostname": "exit02", "iif":
1977+
"vlan13", "oif": "swp1", "vrf": "evpn-vrf", "isL2": false, "overlay": false, "mtuMatch":
1978+
true, "inMtu": 9000, "outMtu": 9216, "protocol": "kernel", "ipLookup": "172.16.2.0/24",
1979+
"vtepLookup": "10.0.0.134", "macLookup": "", "nexthopIp": "169.254.0.1", "hopError":
1980+
"", "timestamp": 1616644822167}, {"pathid": 2, "hopCount": 1, "namespace": "dual-evpn",
1981+
"hostname": "spine01", "iif": "swp5", "oif": "swp3", "vrf": "default", "isL2":
1982+
true, "overlay": true, "mtuMatch": true, "inMtu": 9216, "outMtu": 9216, "protocol":
1983+
"bgp", "ipLookup": "10.0.0.134", "vtepLookup": "", "macLookup": null, "nexthopIp":
1984+
"", "hopError": "", "timestamp": 1616644822008}, {"pathid": 2, "hopCount": 2,
1985+
"namespace": "dual-evpn", "hostname": "leaf03", "iif": "swp1", "oif": "bond02",
1986+
"vrf": "default", "isL2": false, "overlay": false, "mtuMatch": false, "inMtu":
1987+
1500, "outMtu": 1500, "protocol": "", "ipLookup": "", "vtepLookup": "", "macLookup":
1988+
"", "nexthopIp": "", "hopError": "Dst MTU != Src MTU", "timestamp": 1616644822941},
1989+
{"pathid": 3, "hopCount": 0, "namespace": "dual-evpn", "hostname": "exit01", "iif":
1990+
"vlan13", "oif": "swp1", "vrf": "evpn-vrf", "isL2": false, "overlay": false, "mtuMatch":
1991+
true, "inMtu": 9000, "outMtu": 9216, "protocol": "kernel", "ipLookup": "172.16.2.0/24",
1992+
"vtepLookup": "10.0.0.134", "macLookup": "", "nexthopIp": "169.254.0.1", "hopError":
1993+
"", "timestamp": 1616644822008}, {"pathid": 3, "hopCount": 1, "namespace": "dual-evpn",
1994+
"hostname": "spine01", "iif": "swp6", "oif": "swp4", "vrf": "default", "isL2":
1995+
true, "overlay": true, "mtuMatch": true, "inMtu": 9216, "outMtu": 9216, "protocol":
1996+
"bgp", "ipLookup": "10.0.0.134", "vtepLookup": "", "macLookup": null, "nexthopIp":
1997+
"", "hopError": "", "timestamp": 1616644822008}, {"pathid": 3, "hopCount": 2,
1998+
"namespace": "dual-evpn", "hostname": "leaf04", "iif": "swp1", "oif": "bond02",
1999+
"vrf": "default", "isL2": false, "overlay": false, "mtuMatch": false, "inMtu":
2000+
1500, "outMtu": 1500, "protocol": "", "ipLookup": "", "vtepLookup": "", "macLookup":
2001+
"", "nexthopIp": "", "hopError": "Dst MTU != Src MTU", "timestamp": 1616644822983},
2002+
{"pathid": 4, "hopCount": 0, "namespace": "dual-evpn", "hostname": "exit02", "iif":
2003+
"vlan13", "oif": "swp1", "vrf": "evpn-vrf", "isL2": false, "overlay": false, "mtuMatch":
2004+
true, "inMtu": 9000, "outMtu": 9216, "protocol": "kernel", "ipLookup": "172.16.2.0/24",
2005+
"vtepLookup": "10.0.0.134", "macLookup": "", "nexthopIp": "169.254.0.1", "hopError":
2006+
"", "timestamp": 1616644822167}, {"pathid": 4, "hopCount": 1, "namespace": "dual-evpn",
2007+
"hostname": "spine01", "iif": "swp5", "oif": "swp4", "vrf": "default", "isL2":
2008+
true, "overlay": true, "mtuMatch": true, "inMtu": 9216, "outMtu": 9216, "protocol":
2009+
"bgp", "ipLookup": "10.0.0.134", "vtepLookup": "", "macLookup": null, "nexthopIp":
2010+
"", "hopError": "", "timestamp": 1616644822008}, {"pathid": 4, "hopCount": 2,
2011+
"namespace": "dual-evpn", "hostname": "leaf04", "iif": "swp1", "oif": "bond02",
2012+
"vrf": "default", "isL2": false, "overlay": false, "mtuMatch": false, "inMtu":
2013+
1500, "outMtu": 1500, "protocol": "", "ipLookup": "", "vtepLookup": "", "macLookup":
2014+
"", "nexthopIp": "", "hopError": "Dst MTU != Src MTU", "timestamp": 1616644822983},
2015+
{"pathid": 5, "hopCount": 0, "namespace": "dual-evpn", "hostname": "exit01", "iif":
2016+
"vlan13", "oif": "swp2", "vrf": "evpn-vrf", "isL2": false, "overlay": false, "mtuMatch":
2017+
true, "inMtu": 9000, "outMtu": 9216, "protocol": "kernel", "ipLookup": "172.16.2.0/24",
2018+
"vtepLookup": "10.0.0.134", "macLookup": "", "nexthopIp": "169.254.0.1", "hopError":
2019+
"", "timestamp": 1616644822008}, {"pathid": 5, "hopCount": 1, "namespace": "dual-evpn",
2020+
"hostname": "spine02", "iif": "swp6", "oif": "swp3", "vrf": "default", "isL2":
2021+
true, "overlay": true, "mtuMatch": true, "inMtu": 9216, "outMtu": 9216, "protocol":
2022+
"bgp", "ipLookup": "10.0.0.134", "vtepLookup": "", "macLookup": null, "nexthopIp":
2023+
"", "hopError": "", "timestamp": 1616644822008}, {"pathid": 5, "hopCount": 2,
2024+
"namespace": "dual-evpn", "hostname": "leaf03", "iif": "swp2", "oif": "bond02",
2025+
"vrf": "default", "isL2": false, "overlay": false, "mtuMatch": false, "inMtu":
2026+
1500, "outMtu": 1500, "protocol": "", "ipLookup": "", "vtepLookup": "", "macLookup":
2027+
"", "nexthopIp": "", "hopError": "Dst MTU != Src MTU", "timestamp": 1616644822941},
2028+
{"pathid": 6, "hopCount": 0, "namespace": "dual-evpn", "hostname": "exit02", "iif":
2029+
"vlan13", "oif": "swp2", "vrf": "evpn-vrf", "isL2": false, "overlay": false, "mtuMatch":
2030+
true, "inMtu": 9000, "outMtu": 9216, "protocol": "kernel", "ipLookup": "172.16.2.0/24",
2031+
"vtepLookup": "10.0.0.134", "macLookup": "", "nexthopIp": "169.254.0.1", "hopError":
2032+
"", "timestamp": 1616644822167}, {"pathid": 6, "hopCount": 1, "namespace": "dual-evpn",
2033+
"hostname": "spine02", "iif": "swp5", "oif": "swp3", "vrf": "default", "isL2":
2034+
true, "overlay": true, "mtuMatch": true, "inMtu": 9216, "outMtu": 9216, "protocol":
2035+
"bgp", "ipLookup": "10.0.0.134", "vtepLookup": "", "macLookup": null, "nexthopIp":
2036+
"", "hopError": "", "timestamp": 1616644822008}, {"pathid": 6, "hopCount": 2,
2037+
"namespace": "dual-evpn", "hostname": "leaf03", "iif": "swp2", "oif": "bond02",
2038+
"vrf": "default", "isL2": false, "overlay": false, "mtuMatch": false, "inMtu":
2039+
1500, "outMtu": 1500, "protocol": "", "ipLookup": "", "vtepLookup": "", "macLookup":
2040+
"", "nexthopIp": "", "hopError": "Dst MTU != Src MTU", "timestamp": 1616644822941},
2041+
{"pathid": 7, "hopCount": 0, "namespace": "dual-evpn", "hostname": "exit01", "iif":
2042+
"vlan13", "oif": "swp2", "vrf": "evpn-vrf", "isL2": false, "overlay": false, "mtuMatch":
2043+
true, "inMtu": 9000, "outMtu": 9216, "protocol": "kernel", "ipLookup": "172.16.2.0/24",
2044+
"vtepLookup": "10.0.0.134", "macLookup": "", "nexthopIp": "169.254.0.1", "hopError":
2045+
"", "timestamp": 1616644822008}, {"pathid": 7, "hopCount": 1, "namespace": "dual-evpn",
2046+
"hostname": "spine02", "iif": "swp6", "oif": "swp4", "vrf": "default", "isL2":
2047+
true, "overlay": true, "mtuMatch": true, "inMtu": 9216, "outMtu": 9216, "protocol":
2048+
"bgp", "ipLookup": "10.0.0.134", "vtepLookup": "", "macLookup": null, "nexthopIp":
2049+
"", "hopError": "", "timestamp": 1616644822008}, {"pathid": 7, "hopCount": 2,
2050+
"namespace": "dual-evpn", "hostname": "leaf04", "iif": "swp2", "oif": "bond02",
2051+
"vrf": "default", "isL2": false, "overlay": false, "mtuMatch": false, "inMtu":
2052+
1500, "outMtu": 1500, "protocol": "", "ipLookup": "", "vtepLookup": "", "macLookup":
2053+
"", "nexthopIp": "", "hopError": "Dst MTU != Src MTU", "timestamp": 1616644822983},
2054+
{"pathid": 8, "hopCount": 0, "namespace": "dual-evpn", "hostname": "exit02", "iif":
2055+
"vlan13", "oif": "swp2", "vrf": "evpn-vrf", "isL2": false, "overlay": false, "mtuMatch":
2056+
true, "inMtu": 9000, "outMtu": 9216, "protocol": "kernel", "ipLookup": "172.16.2.0/24",
2057+
"vtepLookup": "10.0.0.134", "macLookup": "", "nexthopIp": "169.254.0.1", "hopError":
2058+
"", "timestamp": 1616644822167}, {"pathid": 8, "hopCount": 1, "namespace": "dual-evpn",
2059+
"hostname": "spine02", "iif": "swp5", "oif": "swp4", "vrf": "default", "isL2":
2060+
true, "overlay": true, "mtuMatch": true, "inMtu": 9216, "outMtu": 9216, "protocol":
2061+
"bgp", "ipLookup": "10.0.0.134", "vtepLookup": "", "macLookup": null, "nexthopIp":
2062+
"", "hopError": "", "timestamp": 1616644822008}, {"pathid": 8, "hopCount": 2,
2063+
"namespace": "dual-evpn", "hostname": "leaf04", "iif": "swp2", "oif": "bond02",
2064+
"vrf": "default", "isL2": false, "overlay": false, "mtuMatch": false, "inMtu":
2065+
1500, "outMtu": 1500, "protocol": "", "ipLookup": "", "vtepLookup": "", "macLookup":
2066+
"", "nexthopIp": "", "hopError": "Dst MTU != Src MTU", "timestamp": 1616644822983}]'
19652067
- command: path show --dest=10.0.0.11 --src=10.0.0.14 --namespace=ospf-single --format=json
19662068
data-directory: tests/data/parquet/
19672069
marks: path show cumulus
@@ -3405,3 +3507,9 @@ tests:
34053507
marks: path top cumulus
34063508
output: '[{"hostname": "leaf04"}, {"hostname": "leaf04"}, {"hostname": "spine01"},
34073509
{"hostname": "leaf01"}, {"hostname": "spine02"}]'
3510+
- command: path show --dest=172.16.2.104 --src=172.16.21.104 --namespace=dual-evpn
3511+
--format=json
3512+
data-directory: tests/data/parquet/
3513+
error:
3514+
error: '[{"error": "ERROR: Unable to find starting node for 172.16.21.104"}]'
3515+
marks: path show cumulus

0 commit comments

Comments
 (0)