]>
Commit | Line | Data |
---|---|---|
a0cbe75d | 1 | from lutil import luCommand |
8d56886e LB |
2 | from customize import l3mdev_accept |
3 | l3mdev_rtrs = ['r1', 'r3', 'r4', 'ce4'] | |
4 | for rtr in l3mdev_rtrs: | |
43c2c66b LB |
5 | luCommand(rtr,'sysctl net.ipv4.tcp_l3mdev_accept',' = \d*','none','') |
6 | found = luLast() | |
8d56886e LB |
7 | luCommand(rtr,'ss -naep',':179','pass','IPv4:bgp, l3mdev{}'.format(found.group(0))) |
8 | luCommand(rtr,'ss -naep',':.*:179','pass','IPv6:bgp') | |
9 | luCommand(rtr,'sysctl net.ipv4.tcp_l3mdev_accept',' = {}'.format(l3mdev_accept),'pass','l3mdev matches expected (real/expected{}/{})'.format(found.group(0),l3mdev_accept)) | |
43c2c66b | 10 | |
a0cbe75d LB |
11 | rtrs = ['r1', 'r3', 'r4'] |
12 | for rtr in rtrs: | |
faab6713 LB |
13 | luCommand(rtr, 'ip link show type vrf {}-cust1'.format(rtr),'cust1: .*UP','pass','VRF cust1 intf up') |
14 | luCommand(rtr, 'ip add show vrf {}-cust1'.format(rtr),'r..eth4.*UP','pass','VRF cust1 IP intf up') | |
15 | luCommand(rtr, 'ip add show vrf {}-cust1'.format(rtr),'192.168','pass','VRF cust1 IP config') | |
a0cbe75d | 16 | luCommand(rtr, 'ip route show vrf {}-cust1'.format(rtr),'192.168...0/24 dev r.-eth','pass','VRF cust1 interface route') |
faab6713 LB |
17 | luCommand('r4', 'ip link show type vrf r4-cust2','cust2: .*UP','pass','VRF cust2 up') |
18 | luCommand('r4', 'ip add show vrf r4-cust2','r..eth5.*UP.* 192.168','pass','VRF cust1 IP config') | |
a0cbe75d LB |
19 | luCommand(rtr, 'ip route show vrf r4-cust2'.format(rtr),'192.168...0/24 dev r.-eth','pass','VRF cust2 interface route') |
20 | rtrs = ['ce1', 'ce2', 'ce3'] | |
21 | for rtr in rtrs: | |
22 | luCommand(rtr, 'ip route show','192.168...0/24 dev ce.-eth0','pass','CE interface route') | |
23 | luCommand(rtr,'ping 192.168.1.1 -c 1',' 0. packet loss','wait','CE->PE ping') | |
faab6713 | 24 | luCommand('ce4', 'ip link show type vrf ce4-cust2','cust2: .*UP','pass','VRF cust2 up') |
43c2c66b LB |
25 | luCommand('ce4', 'ip route show vrf ce4-cust2','192.168...0/24 dev ce.-eth0','pass','CE interface route') |
26 | luCommand('ce4','ping 192.168.2.1 -c 1 -I ce4-cust2',' 0. packet loss','wait','CE4->PE4 ping') |