2c801ef442
SONiC Yang model for DHCP-Relay parameters What I did Added DHCPv6 Servers. Tables: VLAN, DHCP_RELAY. How I did it Defined Yang model for Relay based on Guideline doc: https://github.com/Azure/SONiC/blob/master/doc/mgmt/SONiC_YANG_Model_Guidelines.md How to verify it Added test cases to verify it. Signed-off-by: Akhilesh Samineni akhilesh.samineni@broadcom.com
54 lines
1.1 KiB
YANG
54 lines
1.1 KiB
YANG
module sonic-dhcpv6-relay {
|
|
|
|
namespace "http://github.com/Azure/sonic-dhcpv6-relay";
|
|
|
|
prefix sdhcpv6relay;
|
|
|
|
yang-version 1.1;
|
|
|
|
import ietf-inet-types {
|
|
prefix inet;
|
|
}
|
|
|
|
organization "SONiC";
|
|
|
|
contact "SONiC";
|
|
|
|
description "DHCPv6 Relay yang Module for SONiC OS";
|
|
|
|
revision 2021-10-30 {
|
|
description "First Revision";
|
|
}
|
|
|
|
container sonic-dhcpv6-relay {
|
|
|
|
container DHCP_RELAY {
|
|
|
|
description "DHCP_RELAY part of config_db.json";
|
|
|
|
list DHCP_RELAY_LIST {
|
|
|
|
key "name";
|
|
|
|
leaf name {
|
|
type string;
|
|
}
|
|
|
|
leaf-list dhcpv6_servers {
|
|
description "Configure the dhcp v6 servers";
|
|
type inet:ipv6-address;
|
|
}
|
|
|
|
leaf rfc6939_support {
|
|
description "Set rfc6939 for the relay";
|
|
type boolean;
|
|
}
|
|
}
|
|
/* end of VLAN_LIST */
|
|
}
|
|
/* end of container DHCP_RELAY */
|
|
}
|
|
/* end of container sonic-dhcpv6-relay */
|
|
}
|
|
/* end of module sonic-dhcpv6-relay */
|