Update dhcpv6-relay yang model (#14144) (#14245)

This commit is contained in:
mssonicbld 2023-03-15 16:23:09 +08:00 committed by GitHub
parent a3ea2e7a17
commit 95047bdc78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 58 additions and 12 deletions

View File

@ -23,7 +23,8 @@ Table of Contents
* [Data Plane L3 Interfaces](#data-plane-l3-interfaces)
* [DEFAULT_LOSSLESS_BUFFER_PARAMETER](#DEFAULT_LOSSLESS_BUFFER_PARAMETER)
* [Device Metadata](#device-metadata)
* [Device neighbor metada](#device-neighbor-metada)
* [Device neighbor metada](#device-neighbor-metada)
* [DHCP_RELAY](#dhcp_relay)
* [DSCP_TO_TC_MAP](#dscp_to_tc_map)
* [FLEX_COUNTER_TABLE](#flex_counter_table)
* [KDUMP](#kdump)
@ -832,6 +833,22 @@ instance is supported in SONiC.
```
### DHCP_RELAY
```
{
"DHCP_RELAY": {
"dhcpv6_servers": [
"fc02:2000::1",
"fc02:2000::2",
"fc02:2000::3",
"fc02:2000::4"
],
"rfc6939_support": "true",
"interface_id": "true"
}
```
### DSCP_TO_TC_MAP
```

View File

@ -1534,13 +1534,15 @@
"dhcpv6_servers": [
"2a04:5555:41::11"
],
"rfc6939_support": "true"
"rfc6939_support": "true",
"interface_id": "true"
},
"Vlan777": {
"dhcpv6_servers": [
"2a04:5555:41::11"
],
"rfc6939_support": "true"
"rfc6939_support": "true",
"interface_id": "true"
}
},
"SCHEDULER": {

View File

@ -5,5 +5,9 @@
},
"DHCPV6_SERVER_VALID_FORMAT": {
"desc": "Add dhcpv6_server in correct format."
},
"DHCPv6_OPTION_WITH_INVALID_BOOLEAN_TYPE": {
"desc": "Add dhcpv6 option with invalid option boolean types.",
"eStrKey": "Pattern"
}
}

View File

@ -76,11 +76,25 @@
"2001:1::2"
],
"rfc6939_support": "true",
"name": "Vlan400",
"interface_id": "true",
"name": "Vlan400"
}
]
}
}
},
"DHCPv6_OPTION_WITH_INVALID_BOOLEAN_TYPE": {
"sonic-dhcpv6-relay:sonic-dhcpv6-relay": {
"sonic-dhcpv6-relay:DHCP_RELAY": {
"DHCP_RELAY_LIST": [
{
"name": "Vlan500",
"rfc6939_support": "False",
"interface_id": "False"
}
]
}
}
}
}

View File

@ -34,15 +34,24 @@ module sonic-dhcpv6-relay {
type string;
}
leaf-list dhcpv6_servers {
description "Configure the dhcp v6 servers";
type inet:ipv6-address;
}
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;
}
leaf rfc6939_support {
description "Set rfc6939 for the relay";
type string {
pattern "false|true";
}
}
leaf interface_id {
description "Enable interface ID insertion in relayed messages";
type string {
pattern "false|true";
}
}
}
/* end of VLAN_LIST */
}