File tree Expand file tree Collapse file tree 3 files changed +60
-0
lines changed Expand file tree Collapse file tree 3 files changed +60
-0
lines changed Original file line number Diff line number Diff line change 46
46
'./yang-models/sonic-crm.yang' ,
47
47
'./yang-models/sonic-device_metadata.yang' ,
48
48
'./yang-models/sonic-device_neighbor.yang' ,
49
+ './yang-models/sonic-dhcpv6-relay.yang' ,
49
50
'./yang-models/sonic-extension.yang' ,
50
51
'./yang-models/sonic-flex_counter.yang' ,
51
52
'./yang-models/sonic-interface.yang' ,
Original file line number Diff line number Diff line change
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 */
Original file line number Diff line number Diff line change @@ -131,9 +131,15 @@ module sonic-vlan {
131
131
}
132
132
133
133
leaf-list dhcp_servers {
134
+ description "Configure the dhcp v4 servers" ;
134
135
type inet:ip-address;
135
136
}
136
137
138
+ leaf-list dhcpv6_servers {
139
+ description "Configure the dhcp v6 servers" ;
140
+ type inet:ipv6-address;
141
+ }
142
+
137
143
leaf mtu {
138
144
type uint16 {
139
145
range 1 ..9216 ;
You can’t perform that action at this time.
0 commit comments