Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqiangz committed Jul 27, 2023
1 parent 088d84d commit 3bcf491
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 24 deletions.
4 changes: 2 additions & 2 deletions src/sonic-yang-models/tests/files/sample_config_db.json
Original file line number Diff line number Diff line change
Expand Up @@ -1908,12 +1908,12 @@
}
},
"DHCP_SERVER_IPV4_PORT": {
"Vlan100|PortChannel0003": {
"Vlan100|Ethernet0": {
"ips": [
"100.1.1.10"
]
},
"Vlan100|PortChannel2": {
"Vlan100|Ethernet1": {
"ranges": [
"range1"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@
"desc": "Missing id in DHCP_SERVER_IPV4_CUSTOMIZED_OPTIONS",
"eStrKey" : "Mandatory"
},
"DHCP_SERVER_IPV4_CUSTOMIZED_OPTIONS_TYPE_ABSENT": {
"desc": "Missing type in DHCP_SERVER_IPV4_CUSTOMIZED_OPTIONS",
"eStrKey" : "Mandatory"
},
"DHCP_SERVER_IPV4_CUSTOMIZED_OPTIONS_VALUE_ABSENT": {
"desc": "Missing value in DHCP_SERVER_IPV4_CUSTOMIZED_OPTIONS",
"eStrKey" : "Mandatory"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -788,19 +788,6 @@
}
}
},
"DHCP_SERVER_IPV4_CUSTOMIZED_OPTIONS_TYPE_ABSENT": {
"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,
"value": "dummy_value"
}
]
}
}
},
"DHCP_SERVER_IPV4_CUSTOMIZED_OPTIONS_VALUE_ABSENT": {
"sonic-dhcp-server-ipv4:sonic-dhcp-server-ipv4": {
"sonic-dhcp-server-ipv4:DHCP_SERVER_IPV4_CUSTOMIZED_OPTIONS": {
Expand Down
7 changes: 2 additions & 5 deletions src/sonic-yang-models/yang-models/sonic-dhcp-server-ipv4.yang
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module sonic-dhcp-server-ipv4 {
}

leaf lease_time {
description "Lease time of DHCP IP";
description "Lease time of DHCP IP in second";
mandatory true;
type uint32 {
range "1..4294967295";
Expand Down Expand Up @@ -125,15 +125,13 @@ module sonic-dhcp-server-ipv4 {
}

leaf type {
description "Type of customized option";
mandatory true;
description "Type of customized option, for standard DHCP option, this field is invalid";
type enumeration {
enum text;
enum ipv4-address;
enum uint8;
enum uint16;
enum uint32;
enum uint64;
}
}

Expand All @@ -148,7 +146,6 @@ module sonic-dhcp-server-ipv4 {
type uint8;
type uint16;
type uint32;
type uint64;
}
}
}
Expand Down

0 comments on commit 3bcf491

Please sign in to comment.