Skip to content

Commit

Permalink
[202311][dhcp_server][yang] Update supported option type to string (s…
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqiangz authored Feb 7, 2024
1 parent 5352135 commit 0611bdf
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/sonic-yang-models/doc/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ IPV4 DHPC Server related configuration are defined in **DHCP_SERVER_IPV4**, **DH
"DHCP_SERVER_IPV4_CUSTOMIZED_OPTIONS": {
"option60": {
"id": 60,
"type": "text",
"type": "string",
"value": "dummy_value"
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/sonic-yang-models/tests/files/sample_config_db.json
Original file line number Diff line number Diff line change
Expand Up @@ -1924,7 +1924,7 @@
"DHCP_SERVER_IPV4_CUSTOMIZED_OPTIONS": {
"option60": {
"id": "60",
"type": "text",
"type": "string",
"value": "dummy_value"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"eStrKey": "InvalidValue",
"eStr": ["type"]
},
"DHCP_SERVER_IPV4_CUSTOMIZED_OPTIONS_TYPE_VALID_VALUE_TEXT": {
"desc": "Add text type of DHCP_SERVER_IPV4_CUSTOMIZED_OPTIONS."
"DHCP_SERVER_IPV4_CUSTOMIZED_OPTIONS_TYPE_VALID_VALUE_STRING": {
"desc": "Add string type of DHCP_SERVER_IPV4_CUSTOMIZED_OPTIONS."
},
"DHCP_SERVER_IPV4_CUSTOMIZED_OPTIONS_TYPE_VALID_VALUE_IPV4_ADDRESS": {
"desc": "Add ipv4-address type of DHCP_SERVER_IPV4_CUSTOMIZED_OPTIONS."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
{
"name": "option60",
"id": 60,
"type": "text",
"type": "string",
"value": "dummy_value"
}
]
Expand Down Expand Up @@ -171,7 +171,7 @@
{
"name": "option60",
"id": 60,
"type": "text",
"type": "string",
"value": "dummy_value"
}
]
Expand Down Expand Up @@ -230,7 +230,7 @@
{
"name": "option60",
"id": 60,
"type": "text",
"type": "string",
"value": "dummy_value"
}
]
Expand All @@ -248,14 +248,14 @@
}
}
},
"DHCP_SERVER_IPV4_CUSTOMIZED_OPTIONS_TYPE_VALID_VALUE_TEXT": {
"DHCP_SERVER_IPV4_CUSTOMIZED_OPTIONS_TYPE_VALID_VALUE_STRING": {
"sonic-dhcp-server-ipv4:sonic-dhcp-server-ipv4": {
"sonic-dhcp-server-ipv4:DHCP_SERVER_IPV4_CUSTOMIZED_OPTIONS": {
"DHCP_SERVER_IPV4_CUSTOMIZED_OPTIONS_LIST": [
{
"name": "option60",
"id": 60,
"type": "text",
"type": "string",
"value": "dummy_value"
}
]
Expand Down Expand Up @@ -325,7 +325,7 @@
{
"name": "option60",
"id": 60,
"type": "texts",
"type": "text",
"value": "dummy_value"
}
]
Expand Down Expand Up @@ -448,7 +448,7 @@
{
"name": "option60",
"id": 60,
"type": "text",
"type": "string",
"value": "dummy_value"
}
]
Expand Down Expand Up @@ -529,7 +529,7 @@
{
"name": "option60",
"id": 60,
"type": "text",
"type": "string",
"value": "dummy_value"
}
]
Expand Down Expand Up @@ -610,7 +610,7 @@
{
"name": "option60",
"id": 60,
"type": "text",
"type": "string",
"value": "dummy_value"
}
]
Expand Down Expand Up @@ -691,7 +691,7 @@
{
"name": "option60",
"id": 60,
"type": "text",
"type": "string",
"value": "dummy_value"
}
]
Expand Down Expand Up @@ -772,7 +772,7 @@
{
"name": "option60",
"id": 60,
"type": "text",
"type": "string",
"value": "dummy_value"
}
]
Expand Down Expand Up @@ -814,7 +814,7 @@
"DHCP_SERVER_IPV4_CUSTOMIZED_OPTIONS_LIST": [
{
"name": "option60",
"type": "text",
"type": "string",
"value": "dummy_value"
}
]
Expand All @@ -828,7 +828,7 @@
{
"name": "option60",
"id": 60,
"type": "text"
"type": "string"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ module sonic-dhcp-server-ipv4 {
leaf type {
description "Type of customized option, for standard DHCP option, this field is invalid";
type enumeration {
enum text;
enum string;
enum ipv4-address;
enum uint8;
enum uint16;
Expand Down

0 comments on commit 0611bdf

Please sign in to comment.