Skip to content

Commit 75ccb2e

Browse files
author
Praveen Chaudhary
committed
[sonic-yang-models]: Yang models changes for DHCPv6 Relay.
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=
1 parent a19ef79 commit 75ccb2e

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

src/sonic-yang-models/setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
'./yang-models/sonic-crm.yang',
4747
'./yang-models/sonic-device_metadata.yang',
4848
'./yang-models/sonic-device_neighbor.yang',
49+
'./yang-models/sonic-dhcpv6-relay.yang',
4950
'./yang-models/sonic-extension.yang',
5051
'./yang-models/sonic-flex_counter.yang',
5152
'./yang-models/sonic-interface.yang',
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
module sonic-dhcpv6-relay {
2+
3+
namespace "http://github.com/Azure/sonic-dhcpv6-relay";
4+
5+
prefix sdhcpv6relay;
6+
7+
yang-version 1.1;
8+
9+
import ietf-inet-types {
10+
prefix inet;
11+
}
12+
13+
organization "SONiC";
14+
15+
contact "SONiC";
16+
17+
description "DHCPv6 Relay yang Module for SONiC OS";
18+
19+
revision 2021-10-30 {
20+
description "First Revision";
21+
}
22+
23+
container sonic-dhcpv6-relay {
24+
25+
container DHCP_RELAY {
26+
27+
description "DHCP_RELAY part of config_db.json";
28+
29+
list DHCP_RELAY_LIST {
30+
31+
key "name";
32+
33+
leaf name {
34+
type string;
35+
}
36+
37+
leaf-list dhcpv6_servers {
38+
description "Configure the dhcp v6 servers";
39+
type inet:ipv6-address;
40+
}
41+
42+
leaf rfc6939_support {
43+
description "Set rfc6939 for the relay";
44+
type boolean;
45+
}
46+
}
47+
/* end of DHCP_RELAY_LIST */
48+
}
49+
/* end of container DHCP_RELAY */
50+
}
51+
/* end of container sonic-dhcpv6-relay */
52+
}
53+
/* end of module sonic-dhcpv6-relay */

src/sonic-yang-models/yang-models/sonic-vlan.yang

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,15 @@ module sonic-vlan {
131131
}
132132

133133
leaf-list dhcp_servers {
134+
description "Configure the dhcp v4 servers";
134135
type inet:ip-address;
135136
}
136137

138+
leaf-list dhcpv6_servers {
139+
description "Configure the dhcp v6 servers";
140+
type inet:ipv6-address;
141+
}
142+
137143
leaf mtu {
138144
type uint16 {
139145
range 1..9216;

0 commit comments

Comments
 (0)