Browse Source

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
(cherry picked from commit acf646383b)
changes/01/731201/1
Harald Jensås 1 year ago
parent
commit
eacc5d8c05
2 changed files with 7 additions and 1 deletions
  1. +1
    -1
      os_net_config/schema.yaml
  2. +6
    -0
      releasenotes/notes/allow-list-of-routes-to-be-empty-323690796760630d.yaml

+ 1
- 1
os_net_config/schema.yaml View File

@@ -179,7 +179,7 @@ definitions:
type: array
items:
$ref: "#/definitions/route"
minItems: 1
minItems: 0

route_rule:
type: object


+ 6
- 0
releasenotes/notes/allow-list-of-routes-to-be-empty-323690796760630d.yaml 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>_`.

Loading…
Cancel
Save