From c64997d8fb70d34c604396a93e3e0f6a5295b3d4 Mon Sep 17 00:00:00 2001 From: Joachim Desroches Date: Wed, 15 Sep 2021 16:59:32 +0200 Subject: [PATCH] __bird_ospf: add stubnets option This commit adds the ability for the bird OSPF type to use stubnets. --- type/__bird_ospf/man.rst | 6 ++++++ type/__bird_ospf/manifest | 1 + type/__bird_ospf/parameter/optional_multiple | 1 + 3 files changed, 8 insertions(+) create mode 100644 type/__bird_ospf/parameter/optional_multiple diff --git a/type/__bird_ospf/man.rst b/type/__bird_ospf/man.rst index 9b9a20f..f3f4c9a 100644 --- a/type/__bird_ospf/man.rst +++ b/type/__bird_ospf/man.rst @@ -39,6 +39,12 @@ instance-id An OSPF instance ID, allowing several OSPF instances to run on the same links. +OPTIONAL MULTIPLE PARAMETERS +---------------------------- + +stubnet + Add an optionless stubnet definition to the configuration. + SEE ALSO -------- cdist-type__bird_core(7) diff --git a/type/__bird_ospf/manifest b/type/__bird_ospf/manifest index 0e219ae..211e91d 100755 --- a/type/__bird_ospf/manifest +++ b/type/__bird_ospf/manifest @@ -58,6 +58,7 @@ $([ -n "${instance_id?}" ] && printf "\tinstance id %s;\n" "${instance_id?}") area 0 { $(sed -e 's/^/\t\tinterface "/' -e 's/$/";/' "${__object:?}/parameter/interface") +$(sed -e 's/^/\t\tsubnet /' -e 's/$/;/' "${__object:?}/parameter/subnet") }; } EOF diff --git a/type/__bird_ospf/parameter/optional_multiple b/type/__bird_ospf/parameter/optional_multiple new file mode 100644 index 0000000..ed3f25a --- /dev/null +++ b/type/__bird_ospf/parameter/optional_multiple @@ -0,0 +1 @@ +stubnet