Commit 7cb90be6 authored by Marcin Siodelski's avatar Marcin Siodelski

[3628] Updated dhcp4.spec and dhcp6.spec for host reservations.

parent aacdfada
......@@ -93,7 +93,7 @@
{ "item_name": "array",
"item_type": "boolean",
"item_optional": false,
"item_default": False
"item_default": false
},
{ "item_name": "record-types",
......@@ -147,7 +147,7 @@
{ "item_name": "csv-format",
"item_type": "boolean",
"item_optional": false,
"item_default": False
"item_default": false
},
{ "item_name": "space",
"item_type": "string",
......@@ -316,7 +316,7 @@
{ "item_name": "csv-format",
"item_type": "boolean",
"item_optional": false,
"item_default": False
"item_default": false
},
{ "item_name": "space",
"item_type": "string",
......@@ -324,6 +324,43 @@
"item_default": "dhcp4"
} ]
}
},
{ "item_name": "reservations",
"item_type": "list",
"item_optional": false,
"item_default": [],
"list_item_spec":
{
"item_name": "reservation",
"item_type": "map",
"item_optional": false,
"item_default": {},
"map_item_spec": [
{
"item_name": "hw-address",
"item_type": "string",
"item_optional": false,
"item_default": ""
},
{
"item_name": "duid",
"item_type": "string",
"item_optional": false,
"item_default": ""
},
{
"item_name": "hostname",
"item_type": "string",
"item_optional": false,
"item_default": ""
},
{
"item_name": "ip-address",
"item_type": "string",
"item_optional": false,
"item_default": "0.0.0.0"
} ]
}
} ]
}
},
......
......@@ -87,7 +87,7 @@
{ "item_name": "array",
"item_type": "boolean",
"item_optional": false,
"item_default": False
"item_default": false
},
{ "item_name": "record-types",
......@@ -141,7 +141,7 @@
{ "item_name": "csv-format",
"item_type": "boolean",
"item_optional": false,
"item_default": False
"item_default": false
},
{ "item_name": "space",
"item_type": "string",
......@@ -354,7 +354,7 @@
{ "item_name": "csv-format",
"item_type": "boolean",
"item_optional": false,
"item_default": False
"item_default": false
},
{ "item_name": "space",
"item_type": "string",
......@@ -362,6 +362,63 @@
"item_default": "dhcp6"
} ]
}
},
{ "item_name": "reservations",
"item_type": "list",
"item_optional": false,
"item_default": [],
"list_item_spec":
{
"item_name": "reservation",
"item_type": "map",
"item_optional": false,
"item_default": {},
"map_item_spec": [
{
"item_name": "hw-address",
"item_type": "string",
"item_optional": false,
"item_default": ""
},
{
"item_name": "duid",
"item_type": "string",
"item_optional": false,
"item_default": ""
},
{
"item_name": "hostname",
"item_type": "string",
"item_optional": false,
"item_default": ""
},
{
"item_name": "ip-addresses",
"item_type": "list",
"item_optional": false,
"item_default": [],
"list_item_spec":
{
"item_name": "ip-address-reservation",
"item_type": "string",
"item_optional": false,
"item_default": ""
}
},
{
"item_name": "prefixes",
"item_type": "list",
"item_optional": false,
"item_default": [],
"list_item_spec":
{
"item_name": "prefix-reservation",
"item_type": "string",
"item_optional": false,
"item_default": ""
}
} ]
}
} ]
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment