Skip to content

Commit

Permalink
[dhcp_server][yang] Update supported option type to string (sonic-net…
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqiangz authored Feb 5, 2024
1 parent 2f35079 commit c323ccf
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 @@ -1970,7 +1970,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 @@ -43,8 +43,8 @@
"desc": "Configure DHCP port in DHCP_SERVER_IPV4_PORT table which is no exist.",
"eStrKey": "InvalidValue"
},
"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 @@ -63,7 +63,7 @@
{
"name": "option60",
"id": 60,
"type": "text",
"type": "string",
"value": "dummy_value"
}
]
Expand Down Expand Up @@ -212,7 +212,7 @@
{
"name": "option60",
"id": 60,
"type": "text",
"type": "string",
"value": "dummy_value"
}
]
Expand Down Expand Up @@ -272,7 +272,7 @@
{
"name": "option60",
"id": 60,
"type": "text",
"type": "string",
"value": "dummy_value"
}
]
Expand Down Expand Up @@ -325,14 +325,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 @@ -402,7 +402,7 @@
{
"name": "option60",
"id": 60,
"type": "texts",
"type": "text",
"value": "dummy_value"
}
]
Expand Down Expand Up @@ -527,7 +527,7 @@
{
"name": "option60",
"id": 60,
"type": "text",
"type": "string",
"value": "dummy_value"
}
]
Expand Down Expand Up @@ -609,7 +609,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 @@ -773,7 +773,7 @@
{
"name": "option60",
"id": 60,
"type": "text",
"type": "string",
"value": "dummy_value"
}
]
Expand Down Expand Up @@ -855,7 +855,7 @@
{
"name": "option60",
"id": 60,
"type": "text",
"type": "string",
"value": "dummy_value"
}
]
Expand Down Expand Up @@ -897,7 +897,7 @@
"DHCP_SERVER_IPV4_CUSTOMIZED_OPTIONS_LIST": [
{
"name": "option60",
"type": "text",
"type": "string",
"value": "dummy_value"
}
]
Expand All @@ -911,7 +911,7 @@
{
"name": "option60",
"id": 60,
"type": "text"
"type": "string"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,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 c323ccf

Please sign in to comment.