def test_vrf2_neigh_with_default_router_mac(self, partial_ptf_runner): # verify router_mac of Vrf2 keep to be default router_mac partial_ptf_runner( testname='vrf_test.FwdTest', fib_info_files=['/tmp/vrf2_neigh.txt'], src_ports=g_vars['vrf_intf_member_port_indices']['Vrf2']['Vlan2000'] )
def test_vrf1_fwd_pkts_with_ttl_2(self, partial_ptf_runner): # verify packets in Vrf1 with ttl=2 should be forward partial_ptf_runner(testname='vrf_test.FwdTest', fwd_info='/tmp/vrf1_neigh.txt', ttl=2, src_ports=g_vars['vrf_intf_member_port_indices'] ['Vrf1']['Vlan1000'])
def test_vrf1_neigh_with_default_router_mac(self, partial_ptf_runner): # send packets with default router_mac partial_ptf_runner(testname='vrf_test.FwdTest', pkt_action='drop', fib_info_files=['/tmp/vrf1_neigh.txt'], src_ports=g_vars['vrf_intf_member_port_indices'] ['Vrf1']['Vlan1000'])
def test_vrf2_fwd_pkts_with_ttl_1(self, partial_ptf_runner): # verify packets in Vrf2 with ttl=1 should be forward partial_ptf_runner(testname='vrf_test.FwdTest', fib_info_files=['/tmp/vrf2_neigh.txt'], ttl=1, src_ports=g_vars['vrf_intf_member_port_indices'] ['Vrf2']['Vlan2000'])
def test_vrf2_forward_v4(self, partial_ptf_runner): # verify ipv4 L3 traffic is forwarded in vrf2 partial_ptf_runner(testname='vrf_test.FwdTest', fib_info_files=['/tmp/vrf2_neigh.txt'], ipv4=True, ipv6=False, src_ports=g_vars['vrf_intf_member_port_indices'] ['Vrf2']['Vlan2000'])
def test_vrf1_drop_pkts_with_ttl_1(self, partial_ptf_runner): # verify packets in Vrf1 with ttl=1 should be drop partial_ptf_runner(testname='vrf_test.FwdTest', pkt_action='drop', fib_info_files=['/tmp/vrf1_neigh.txt'], ttl=1, src_ports=g_vars['vrf_intf_member_port_indices'] ['Vrf1']['Vlan1000'])
def test_vrf1_forward_v6(self, partial_ptf_runner): # verify ipv6 L3 traffic is forwarded in vrf1 partial_ptf_runner(testname='vrf_test.FwdTest', fwd_info='/tmp/vrf1_neigh.txt', ipv4=False, ipv6=True, src_ports=g_vars['vrf_intf_member_port_indices'] ['Vrf1']['Vlan1000'])
def test_vrf2_drop_v6(self, partial_ptf_runner): # verify ipv6 L3 traffic is dropped in vrf2 partial_ptf_runner(testname='vrf_test.FwdTest', pkt_action='drop', fib_info_files=['/tmp/vrf2_neigh.txt'], ipv4=False, ipv6=True, src_ports=g_vars['vrf_intf_member_port_indices'] ['Vrf2']['Vlan2000'])
def test_vrf2_fwd_pkts_with_ip_opt(self, partial_ptf_runner): # verify packets in Vrf2 with ip_option should be forward partial_ptf_runner(testname='vrf_test.FwdTest', fib_info_files=['/tmp/vrf2_neigh.txt'], ip_option=True, ipv4=True, ipv6=False, src_ports=g_vars['vrf_intf_member_port_indices'] ['Vrf2']['Vlan2000'])
def test_vrf1_drop_v4(self, partial_ptf_runner): # verify ipv4 L3 traffic is dropped in vrf1 partial_ptf_runner(testname='vrf_test.FwdTest', fwd_info='/tmp/vrf1_neigh.txt', pkt_action='drop', ipv4=True, ipv6=False, src_ports=g_vars['vrf_intf_member_port_indices'] ['Vrf1']['Vlan1000'])
def test_vrf1_fwd_pkts_without_ip_opt(self, partial_ptf_runner): # verify packets in Vrf1 without ip_option should be forward partial_ptf_runner(testname='vrf_test.FwdTest', fwd_info='/tmp/vrf1_neigh.txt', ip_option=False, ipv4=True, ipv6=False, src_ports=g_vars['vrf_intf_member_port_indices'] ['Vrf1']['Vlan1000'])
def test_vrf1_drop_pkts_with_ip_opt(self, partial_ptf_runner): # verify packets in Vrf1 with ip_options should be drop partial_ptf_runner( testname='vrf_test.FwdTest', pkt_action='drop', fib_info_files=['/tmp/vrf1_neigh.txt'], ip_options=[b'\x94\x04\x00\x00'], # router alert ipv4=True, ipv6=False, src_ports=g_vars['vrf_intf_member_port_indices']['Vrf1']['Vlan1000'] )