Compare commits
2 commits
opendkim-i
...
master
Author | SHA1 | Date | |
---|---|---|---|
f01f110463 | |||
f101ea4afa |
3 changed files with 40 additions and 4 deletions
|
@ -26,6 +26,18 @@ OPTIONAL PARAMETERS
|
||||||
mtu
|
mtu
|
||||||
An optional MTU setting to include in the router advertisements.
|
An optional MTU setting to include in the router advertisements.
|
||||||
|
|
||||||
|
default-preference
|
||||||
|
This option specifies the Default Router Preference value to advertise to
|
||||||
|
hosts. Default: medium.
|
||||||
|
|
||||||
|
route-preference
|
||||||
|
This option specifies the default value of advertised route preference for
|
||||||
|
specific routes. Default: medium.
|
||||||
|
|
||||||
|
default-lifetime
|
||||||
|
This option specifies the time (in seconds) how long (since the receipt of RA)
|
||||||
|
hosts may use the router as a default router. 0 means do not use as a default
|
||||||
|
router. Default: 3.
|
||||||
|
|
||||||
OPTIONAL MULTIPLE PARAMETERS
|
OPTIONAL MULTIPLE PARAMETERS
|
||||||
----------------------------
|
----------------------------
|
||||||
|
|
|
@ -58,27 +58,48 @@ fi
|
||||||
MTU=
|
MTU=
|
||||||
if [ -f "${__object:?}/parameter/mtu" ];
|
if [ -f "${__object:?}/parameter/mtu" ];
|
||||||
then
|
then
|
||||||
MTU="link mtu $(cat "${__object:?}/parameter/mtu")"
|
MTU="link mtu $(cat "${__object:?}/parameter/mtu");"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DEFAULT_PREFERENCE=
|
||||||
|
if [ -f "${__object:?}/parameter/default-preference" ];
|
||||||
|
then
|
||||||
|
DEFAULT_PREFERENCE="default preference $(cat "${__object:?}/parameter/default-preference");"
|
||||||
|
fi
|
||||||
|
|
||||||
|
ROUTE_PREFERENCE=
|
||||||
|
if [ -f "${__object:?}/parameter/route-preference" ];
|
||||||
|
then
|
||||||
|
ROUTE_PREFERENCE="route preference $(cat "${__object:?}/parameter/route-preference");"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DEFAULT_LIFETIME=
|
||||||
|
if [ -f "${__object:?}/parameter/default-lifetime" ];
|
||||||
|
then
|
||||||
|
DEFAULT_LIFETIME="default lifetime $(cat "${__object:?}/parameter/default-lifetime");"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
__file "${confdir:?}/radv-${__object_id:?}.conf" \
|
__file "${confdir:?}/radv-${__object_id:?}.conf" \
|
||||||
--mode 0640 --owner root --group bird \
|
--mode 0640 --owner root --group bird \
|
||||||
--source - << EOF
|
--source - << EOF
|
||||||
ipv6 table radv_routes;
|
ipv6 table radv_routes_${__object_id};
|
||||||
|
|
||||||
protocol static {
|
protocol static {
|
||||||
description "Routes advertised via RAs";
|
description "Routes advertised via RAs";
|
||||||
ipv6 { table radv_routes; };
|
ipv6 { table radv_routes_${__object_id}; };
|
||||||
|
|
||||||
$(sed -e 's/^/\troute /' -e 's/$/ unreachable;/' "${__object:?}/parameter/route")
|
$(sed -e 's/^/\troute /' -e 's/$/ unreachable;/' "${__object:?}/parameter/route")
|
||||||
}
|
}
|
||||||
|
|
||||||
protocol radv ${__object_id:?} {
|
protocol radv ${__object_id:?} {
|
||||||
propagate routes ${have_routes:?};
|
propagate routes ${have_routes:?};
|
||||||
ipv6 { table radv_routes; export all; };
|
ipv6 { table radv_routes_${__object_id}; export all; };
|
||||||
|
|
||||||
interface "$(cat "${__object:?}/parameter/interface")" {
|
interface "$(cat "${__object:?}/parameter/interface")" {
|
||||||
$MTU
|
$MTU
|
||||||
|
$DEFAULT_LIFETIME
|
||||||
|
$DEFAULT_PREFERENCE
|
||||||
|
$ROUTE_PREFERENCE
|
||||||
};
|
};
|
||||||
|
|
||||||
$RDNS
|
$RDNS
|
||||||
|
|
|
@ -1 +1,4 @@
|
||||||
mtu
|
mtu
|
||||||
|
default-preference
|
||||||
|
route-preference
|
||||||
|
default-lifetime
|
||||||
|
|
Loading…
Reference in a new issue