2.19. test_dhcp module

class test_dhcp.TestDHCP(methodName='runTest')

Bases: framework.VppTestCase

DHCP Test Case

send_and_assert_no_replies(intf, pkts, remark)
setUp()
tearDown()
test_dhcp6_proxy()

DHCPv6 Proxy

test_dhcp_client()

DHCP Client

test_dhcp_proxy()

DHCPv4 Proxy

validate_relay_options(pkt, intf, ip_addr, fib_id, oui)
verify_dhcp6_advert(pkt, intf, peer)
verify_dhcp6_solicit(pkt, intf, peer_ip, peer_mac, fib_id=0, oui=0, dst_mac=None, dst_ip=None)
verify_dhcp_has_option(pkt, option, value)
verify_dhcp_msg_type(pkt, name)
verify_dhcp_offer(pkt, intf, fib_id=0, oui=0)
verify_orig_dhcp_discover(pkt, intf, hostname, client_id=None)
verify_orig_dhcp_pkt(pkt, intf)
verify_orig_dhcp_request(pkt, intf, hostname, ip)
verify_relayed_dhcp_discover(pkt, intf, src_intf=None, fib_id=0, oui=0, dst_mac=None, dst_ip=None)