Skip to content

Commit

Permalink
[sonic-yang-models]: Yang models changes for DHCPv6 Relay.
Browse files Browse the repository at this point in the history
This commit brings part of
sonic-net#8946.

Signed-off-by: Praveen Chaudhary <[email protected]>
RB=2977661
G=lnos-reviewers
R=pchaudhary,pmao,samaity,zxu
A=
  • Loading branch information
Praveen Chaudhary committed Nov 20, 2021
1 parent a19ef79 commit 75ccb2e
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/sonic-yang-models/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
53 changes: 53 additions & 0 deletions src/sonic-yang-models/yang-models/sonic-dhcpv6-relay.yang
Original file line number Diff line number Diff line change
@@ -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 */
6 changes: 6 additions & 0 deletions src/sonic-yang-models/yang-models/sonic-vlan.yang
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 75ccb2e

Please sign in to comment.