__bird_ospf: add stubnets option

This commit adds the ability for the bird OSPF type to use stubnets.
This commit is contained in:
sparrowhawk 2021-09-15 16:59:32 +02:00
parent 58ac59edb2
commit c64997d8fb
No known key found for this signature in database
GPG key ID: 6778C9C29C02D691
3 changed files with 8 additions and 0 deletions

View file

@ -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)

View file

@ -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

View file

@ -0,0 +1 @@
stubnet