2.38. test_dhcp6 module

class test_dhcp6.TestDHCPv6DataPlane(methodName='runTest')

Bases: framework.VppTestCase

DHCPv6 Data Plane 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_dhcp_ia_na_send_solicit_receive_advertise()

Verify DHCPv6 IA NA Solicit packet and Advertise event

test_dhcp_pd_send_solicit_receive_advertise()

Verify DHCPv6 PD Solicit packet and Advertise event

class test_dhcp6.TestDHCPv6IANAControlPlane(methodName='runTest')

Bases: framework.VppTestCase

DHCPv6 IA NA Control Plane Test Case

classmethod force_solo()

if the test case class is timing-sensitive - return true

get_addresses()
static get_interface_addresses(fib, pg)
send_advertise(t1=None, t2=None, ianaopts=None)
send_packet(msg_type, t1=None, t2=None, ianaopts=None)
send_reply(t1=None, t2=None, ianaopts=None)
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_T1_and_T2_timeouts()

Test T1 and T2 timeouts

test_T1_greater_than_T2()

T1 is greater than T2

test_addresses()

Test handling of addresses

test_no_address_available_in_advertise()

Advertise message contains NoAddrsAvail status code

test_preferred_greater_than_valid_lifetime()

Preferred lifetime is greater than valid lifetime

test_sending_client_messages_solicit()

VPP receives messages from DHCPv6 client

test_sending_inappropriate_packets()

Server sends messages with inappropriate message types

validate_duid_ll(duid)
validate_packet(packet, msg_type, is_resend=False)
wait_for_packet(msg_type, timeout=None, is_resend=False)
wait_for_rebind(timeout=None, is_resend=False)
wait_for_release(timeout=None, is_resend=False)
wait_for_renew(timeout=None, is_resend=False)
wait_for_request(timeout=None, is_resend=False)
wait_for_solicit(timeout=None, is_resend=False)
class test_dhcp6.TestDHCPv6PDControlPlane(methodName='runTest')

Bases: framework.VppTestCase

DHCPv6 PD Control Plane Test Case

get_addresses()
static get_interface_addresses(fib, pg)
send_advertise(t1=None, t2=None, iapdopt=None)
send_packet(msg_type, t1=None, t2=None, iapdopt=None)
send_reply(t1=None, t2=None, iapdopt=None)
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_T1_and_T2_timeouts()

Test T1 and T2 timeouts

test_T1_greater_than_T2()

T1 is greater than T2

test_no_prefix_available_in_advertise()

Advertise message contains NoPrefixAvail status code

test_preferred_greater_than_valid_lifetime()

Preferred lifetime is greater than valid lifetime

test_prefixes()

Test handling of prefixes

test_sending_client_messages_solicit()

VPP receives messages from DHCPv6 client

test_sending_inappropriate_packets()

Server sends messages with inappropriate message types

validate_duid_ll(duid)
validate_packet(packet, msg_type, is_resend=False)
wait_for_packet(msg_type, timeout=None, is_resend=False)
wait_for_rebind(timeout=None, is_resend=False)
wait_for_release(timeout=None, is_resend=False)
wait_for_renew(timeout=None, is_resend=False)
wait_for_request(timeout=None, is_resend=False)
wait_for_solicit(timeout=None, is_resend=False)
test_dhcp6.ip6_normalize(ip6)