]>
Commit | Line | Data |
---|---|---|
a4b74d05 CF |
1 | import frrtest |
2 | ||
701a0192 | 3 | |
a4b74d05 | 4 | class TestMpAttr(frrtest.TestMultiOut): |
701a0192 | 5 | program = "./test_mp_attr" |
6 | ||
a4b74d05 CF |
7 | |
8 | TestMpAttr.okfail("IPv6: IPV6 MP Reach, global nexthop, 1 NLRI") | |
9 | TestMpAttr.okfail("IPv6-2: IPV6 MP Reach, global nexthop, 2 NLRIs") | |
10 | TestMpAttr.okfail("IPv6-default: IPV6 MP Reach, global nexthop, 2 NLRIs + default") | |
11 | TestMpAttr.okfail("IPv6-lnh: IPV6 MP Reach, global+local nexthops, 2 NLRIs + default") | |
12 | TestMpAttr.okfail("IPv6-nhlen: IPV6 MP Reach, inappropriate nexthop length") | |
13 | TestMpAttr.okfail("IPv6-nhlen2: IPV6 MP Reach, invalid nexthop length") | |
14 | TestMpAttr.okfail("IPv6-nhlen3: IPV6 MP Reach, nexthop length overflow") | |
15 | TestMpAttr.okfail("IPv6-nhlen4: IPV6 MP Reach, nexthop length short") | |
16 | TestMpAttr.okfail("IPv6-nlri: IPV6 MP Reach, NLRI bitlen overflow") | |
17 | TestMpAttr.okfail("IPv4: IPv4 MP Reach, 2 NLRIs + default") | |
18 | TestMpAttr.okfail("IPv4-nhlen: IPv4 MP Reach, nexthop lenth overflow") | |
19 | TestMpAttr.okfail("IPv4-nlrilen: IPv4 MP Reach, nlri lenth overflow") | |
20 | TestMpAttr.okfail("IPv4-VPNv4: IPv4/VPNv4 MP Reach, RD, Nexthop, 2 NLRIs") | |
701a0192 | 21 | TestMpAttr.okfail( |
22 | "IPv4-VPNv4-bogus-plen: IPv4/MPLS-labeled VPN MP Reach, RD, Nexthop, NLRI / bogus p'len" | |
23 | ) | |
24 | TestMpAttr.okfail( | |
25 | "IPv4-VPNv4-plen1-short: IPv4/VPNv4 MP Reach, RD, Nexthop, 2 NLRIs, 1st plen short" | |
26 | ) | |
27 | TestMpAttr.okfail( | |
28 | "IPv4-VPNv4-plen1-long: IPv4/VPNv4 MP Reach, RD, Nexthop, 2 NLRIs, 1st plen long" | |
29 | ) | |
30 | TestMpAttr.okfail( | |
31 | "IPv4-VPNv4-plenn-long: IPv4/VPNv4 MP Reach, RD, Nexthop, 3 NLRIs, last plen long" | |
32 | ) | |
33 | TestMpAttr.okfail( | |
34 | "IPv4-VPNv4-plenn-short: IPv4/VPNv4 MP Reach, RD, Nexthop, 2 NLRIs, last plen short" | |
35 | ) | |
36 | TestMpAttr.okfail( | |
37 | "IPv4-VPNv4-bogus-rd-type: IPv4/VPNv4 MP Reach, RD, NH, 2 NLRI, unknown RD in 1st (log, but parse)" | |
38 | ) | |
39 | TestMpAttr.okfail( | |
40 | "IPv4-VPNv4-0-nlri: IPv4/VPNv4 MP Reach, RD, Nexthop, 3 NLRI, 3rd 0 bogus" | |
41 | ) | |
a4b74d05 CF |
42 | TestMpAttr.okfail("IPv6-bug: IPv6, global nexthop, 1 default NLRI") |
43 | TestMpAttr.okfail("IPv6-unreach: IPV6 MP Unreach, 1 NLRI") | |
44 | TestMpAttr.okfail("IPv6-unreach2: IPV6 MP Unreach, 2 NLRIs") | |
45 | TestMpAttr.okfail("IPv6-unreach-default: IPV6 MP Unreach, 2 NLRIs + default") | |
46 | TestMpAttr.okfail("IPv6-unreach-nlri: IPV6 MP Unreach, NLRI bitlen overflow") | |
47 | TestMpAttr.okfail("IPv4-unreach: IPv4 MP Unreach, 2 NLRIs + default") | |
48 | TestMpAttr.okfail("IPv4-unreach-nlrilen: IPv4 MP Unreach, nlri length overflow") | |
49 | TestMpAttr.okfail("IPv4-unreach-VPNv4: IPv4/MPLS-labeled VPN MP Unreach, RD, 3 NLRIs") |