Repository navigation
Dhcpv4 support review - #371
Merged
Merged
Conversation
alakendu
reviewed
Apr 30, 2024
…ic-generator/models into dhcpv4_support_review
…ic-generator/models into dhcpv4_support_review
…ic-generator/models into dhcpv4_support_review
…ic-generator/models into dhcpv4_support_review
…ic-generator/models into dhcpv4_support_review
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
open-traffic-generator/models-yang#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)