From eacc5d8c05279172f1aaff8e3cf1c13cacbbfca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harald=20Jens=C3=A5s?= Date: Mon, 17 Sep 2018 19:33:15 +0200 Subject: [PATCH] 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 acf646383ba1b5ecb982a0e57e093f841842c396) --- os_net_config/schema.yaml | 2 +- .../allow-list-of-routes-to-be-empty-323690796760630d.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/allow-list-of-routes-to-be-empty-323690796760630d.yaml diff --git a/os_net_config/schema.yaml b/os_net_config/schema.yaml index 6bb7ac63..f8f9767c 100644 --- a/os_net_config/schema.yaml +++ b/os_net_config/schema.yaml @@ -179,7 +179,7 @@ definitions: type: array items: $ref: "#/definitions/route" - minItems: 1 + minItems: 0 route_rule: type: object diff --git a/releasenotes/notes/allow-list-of-routes-to-be-empty-323690796760630d.yaml b/releasenotes/notes/allow-list-of-routes-to-be-empty-323690796760630d.yaml new file mode 100644 index 00000000..9816cba7 --- /dev/null +++ b/releasenotes/notes/allow-list-of-routes-to-be-empty-323690796760630d.yaml @@ -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 + _`.