2.25. test_dhcp module

class test_dhcp.TestDHCP(methodName='runTest')

Bases: framework.VppTestCase

DHCP Test Case

setUp()

Clear trace before running each test

tearDown()

Show various debug prints after each test

test_dhcp6_proxy()

DHCPv6 Proxy

test_dhcp_client()

DHCP Client

test_dhcp_proxy()

DHCPv4 Proxy

validate_relay_options(pkt, intf, ip_addr, vpn_id, fib_id, oui)
verify_dhcp6_advert(pkt, intf, peer)
verify_dhcp6_solicit(pkt, intf, peer_ip, peer_mac, vpn_id='', 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, vpn_id='', fib_id=0, oui=0)
verify_orig_dhcp_discover(pkt, intf, hostname, client_id=None, broadcast=1)
verify_orig_dhcp_pkt(pkt, intf)
verify_orig_dhcp_request(pkt, intf, hostname, ip, broadcast=1)
verify_relayed_dhcp_discover(pkt, intf, src_intf=None, fib_id=0, oui=0, vpn_id='', dst_mac=None, dst_ip=None)