forked from ungleich-public/cdist-contrib
__bird_ospf: add stubnets option
This commit adds the ability for the bird OSPF type to use stubnets.
This commit is contained in:
parent
58ac59edb2
commit
c64997d8fb
3 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
1
type/__bird_ospf/parameter/optional_multiple
Normal file
1
type/__bird_ospf/parameter/optional_multiple
Normal file
|
@ -0,0 +1 @@
|
|||
stubnet
|
Loading…
Reference in a new issue