This model is designed to take care of following implementation:1. DHCP Client & Server are Keysight and Relay Agent as DUT:
In this the construct dhcp_v4interfaces and dhcp_v4interfaces are exposed under an Ethernet Interface to configure DHCP Client parameters. The configuration of a DHCP client is placed under Ethernet Interface as parallel to IP configuration as protocol like BGP can be configured referring an IP interface or a DHCP interface.
2. BGP peer can be configured on top of DHCP interface:
BGP peer is to refer ipv4_name or ipv6_name for IPv4/IPv6 connected or loopback interfaces. Now BGP peer can also refer to dhcp_v4interface or dhcp_v6interface interfaces.
https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/open-traffic-generator/models/dhcpv4_support_review/artifacts/openapi.yaml&nocors.
This model is designed to take care of following implementation: 1. DHCP Client & Server are Keysight and Relay Agent as DUT: In this the construct dhcp_v4interfaces and dhcp_v4interfaces are exposed under an Ethernet Interface to configure DHCP Client parameters. The configuration of a DHCP client is placed under Ethernet Interface as parallel to IP configuration as protocol like BGP can be configured referring an IP interface or a DHCP interface. 2. BGP peer can be configured on top of DHCP interface: BGP peer is to refer ipv4_name or ipv6_name for IPv4/IPv6 connected or loopback interfaces. Now BGP peer can also refer to dhcp_v4interface or dhcp_v6interface interfaces.
gNMI Model: https://github.com/open-traffic-generator/models-yang/pull/29 https://github.com/open-traffic-generator/models-yang/blob/dhcpv4-yang/artifacts/open-traffic-generator-dhcpv4client.txt https://github.com/open-traffic-generator/models-yang/blob/dhcpv4-yang/artifacts/open-traffic-generator-dhcpv4server.txt
Path for fetching Client Interface information: // Path from root: "/dhcpv4-clients/dhcpv4-client[name=dhpc4-client1]/state/ // Path from root: "/dhcpv4-clients/dhcpv4-client[name=dhpc4-client1]/state/interface/address" // Path from root: "/dhcpv4-clients/dhcpv4-client[name=dhpc4-client1]/state/interface/prefix-length" // Path from root: "/dhcpv4-clients/dhcpv4-client[name=dhpc4-client1]/state/interface/gateway_address" // Path from root: "/dhcpv4-clients/dhcpv4-client[name=dhpc4-client1]/state/interface/lease_time" // Path from root: "/dhcpv4-clients/dhcpv4-client[name=dhpc4-client1]/state/interface/renew_time"
A code snippet for BGP over DHCP
// OTG (BGP over DHCPv4-Client) // ^ // | // | // v // DUT(Relay Agent/Router with BGP) // ^ // | // | // v // OTG (DHCPv4Server, BGP)