2.122. test_vrrp module¶
-
class
test_vrrp.
TestVRRP4
(methodName='runTest')¶ Bases:
framework.VppTestCase
IPv4 VRRP Test Case
-
setUp
()¶ Clear trace before running each test
-
classmethod
setUpClass
()¶ Perform class setup before running the testcase Remove shared memory files, start vpp and connect the vpp-api
-
tearDown
()¶ Show various debug prints after each test
-
classmethod
tearDownClass
()¶ Perform final cleanup after running all tests in this test-case
-
test_vrrp4_accept_mode_disabled
()¶ IPv4 Master VR does not reply for VIP w/ accept mode off
-
test_vrrp4_accept_mode_enabled
()¶ IPv4 Master VR replies for VIP w/ accept mode on
-
test_vrrp4_backup_noadv
()¶ IPv4 Backup VR does not advertise
-
test_vrrp4_backup_noarp
()¶ IPv4 Backup VR ignores ARP
-
test_vrrp4_backup_preempts
()¶ IPv4 Backup VR preempts lower priority master
-
test_vrrp4_election
()¶ IPv4 Backup VR becomes master if no advertisements received
-
test_vrrp4_intf_tracking
()¶ IPv4 Master VR adjusts priority based on tracked interface
-
test_vrrp4_master_adv
()¶ IPv4 Master VR advertises
-
test_vrrp4_master_adv_unicast
()¶ IPv4 Master VR advertises (unicast)
-
test_vrrp4_master_arp
()¶ IPv4 Master VR replies to ARP
-
test_vrrp4_master_preempted
()¶ IPv4 Master VR preempted by higher priority backup
-
verify_vrrp4_adv
(rx_pkt, vr, prio=None)¶
-
verify_vrrp4_garp
(pkt, vip, vmac)¶
-
verify_vrrp4_igmp
(pkt)¶
-
-
class
test_vrrp.
TestVRRP6
(methodName='runTest')¶ Bases:
framework.VppTestCase
IPv6 VRRP Test Case
-
setUp
()¶ Clear trace before running each test
-
classmethod
setUpClass
()¶ Perform class setup before running the testcase Remove shared memory files, start vpp and connect the vpp-api
-
tearDown
()¶ Show various debug prints after each test
-
classmethod
tearDownClass
()¶ Perform final cleanup after running all tests in this test-case
-
test_vrrp6_accept_mode_disabled
()¶ IPv6 Master VR does not reply for VIP w/ accept mode off
-
test_vrrp6_accept_mode_enabled
()¶ IPv6 Master VR replies for VIP w/ accept mode on
-
test_vrrp6_backup_noadv
()¶ IPv6 Backup VR does not advertise
-
test_vrrp6_backup_nond
()¶ IPv6 Backup VR ignores NDP
-
test_vrrp6_backup_preempts
()¶ IPv6 Backup VR preempts lower priority master
-
test_vrrp6_election
()¶ IPv6 Backup VR becomes master if no advertisements received
-
test_vrrp6_intf_tracking
()¶ IPv6 Master VR adjusts priority based on tracked interface
-
test_vrrp6_master_adv
()¶ IPv6 Master VR advertises
-
test_vrrp6_master_adv_unicast
()¶ IPv6 Master VR advertises (unicast)
-
test_vrrp6_master_nd
()¶ IPv6 Master VR replies to NDP
-
test_vrrp6_master_preempted
()¶ IPv6 Master VR preempted by higher priority backup
-
verify_vrrp6_adv
(rx_pkt, vr, prio=None)¶
-
verify_vrrp6_gna
(pkt, vr)¶
-
verify_vrrp6_mlr
(pkt, vr)¶
-
-
class
test_vrrp.
VppVRRPVirtualRouter
(test, intf, vr_id, prio=100, intvl=100, flags=1, vips=None)¶ Bases:
vpp_object.VppObject
-
add_del_tracked_interface
(is_add, sw_if_index, prio)¶
-
add_vpp_config
()¶ Add the configuration for this object to vpp.
-
adv_dest_ip
()¶
-
adv_dest_mac
()¶
-
adv_interval
()¶
-
assert_state_equals
(state)¶
-
interface
()¶
-
master_down_seconds
()¶
-
priority
()¶
-
query_vpp_config
()¶ Query the vpp configuration.
- Returns
True if the object is configured
-
remove_vpp_config
()¶ Remove the configuration for this object from vpp.
-
set_unicast_peers
(addrs)¶
-
start_stop
(is_start)¶
-
start_time
()¶
-
virtual_ips
()¶
-
virtual_mac
()¶
-
vr_id
()¶
-
vrrp_adv_packet
(prio=None, src_ip=None)¶
-
-
test_vrrp.
is_non_arp
(p)¶ Want to filter out advertisements, igmp, etc
-
test_vrrp.
is_not_adv
(p)¶ Filter out everything but advertisements. E.g. multicast RD/ND
-
test_vrrp.
is_not_echo_reply
(p)¶ filter out advertisements and other while waiting for echo reply