diff --git a/src/sonic-yang-models/setup.py b/src/sonic-yang-models/setup.py index 553b44bc9508..510144adfa13 100644 --- a/src/sonic-yang-models/setup.py +++ b/src/sonic-yang-models/setup.py @@ -46,6 +46,7 @@ './yang-models/sonic-crm.yang', './yang-models/sonic-device_metadata.yang', './yang-models/sonic-device_neighbor.yang', + './yang-models/sonic-dhcpv6-relay.yang', './yang-models/sonic-extension.yang', './yang-models/sonic-flex_counter.yang', './yang-models/sonic-interface.yang', diff --git a/src/sonic-yang-models/yang-models/sonic-dhcpv6-relay.yang b/src/sonic-yang-models/yang-models/sonic-dhcpv6-relay.yang new file mode 100644 index 000000000000..36f9bdf6053d --- /dev/null +++ b/src/sonic-yang-models/yang-models/sonic-dhcpv6-relay.yang @@ -0,0 +1,53 @@ +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 DHCP_RELAY_LIST */ + } + /* end of container DHCP_RELAY */ + } + /* end of container sonic-dhcpv6-relay */ +} +/* end of module sonic-dhcpv6-relay */ diff --git a/src/sonic-yang-models/yang-models/sonic-vlan.yang b/src/sonic-yang-models/yang-models/sonic-vlan.yang index bafc7d0bc187..9cabac0ab59d 100644 --- a/src/sonic-yang-models/yang-models/sonic-vlan.yang +++ b/src/sonic-yang-models/yang-models/sonic-vlan.yang @@ -131,9 +131,15 @@ module sonic-vlan { } leaf-list dhcp_servers { + description "Configure the dhcp v4 servers"; type inet:ip-address; } + leaf-list dhcpv6_servers { + description "Configure the dhcp v6 servers"; + type inet:ipv6-address; + } + leaf mtu { type uint16 { range 1..9216;