Allow list_of_routes to be [] in config

This changes the schema validation to allow an empty
list of routes to be specified in the configuration.

Closes-Bug: #1792992
Change-Id: I808cdd9c352f3e0dd0b75b8b8b738b97d82da7c1
This commit is contained in:
Harald Jensås 2018-09-17 19:33:15 +02:00
parent f73505895b
commit acf646383b
2 changed files with 7 additions and 1 deletions

View File

@ -154,7 +154,7 @@ definitions:
type: array
items:
$ref: "#/definitions/route"
minItems: 1
minItems: 0
nic_mapping:
type: ["object", "null"]

View File

@ -0,0 +1,6 @@
---
other:
- |
The schema now allow the ``routes`` option to be an empty list. (Previously
at least one route was was required.) Bug: `1792992
<https://bugs.launchpad.net/os-net-config/+bug/1792992>_`.