2020-11-14 10:47:44 +00:00
|
|
|
% for interface, config in sorted(interfaces.items()):
|
|
|
|
interface ${interface}
|
|
|
|
{
|
|
|
|
AdvSendAdvert on;
|
|
|
|
prefix ${config.get('prefix', '::/64')}
|
|
|
|
{
|
|
|
|
AdvOnLink on;
|
|
|
|
AdvAutonomous on;
|
|
|
|
AdvRouterAddr on;
|
|
|
|
};
|
2020-12-13 13:59:10 +00:00
|
|
|
% if 'rdnss' in config:
|
2020-11-14 10:47:44 +00:00
|
|
|
RDNSS ${' '.join(sorted(config['rdnss']))}
|
|
|
|
{
|
|
|
|
AdvRDNSSLifetime 900;
|
|
|
|
};
|
2020-12-13 13:59:10 +00:00
|
|
|
% endif
|
2020-11-14 10:47:44 +00:00
|
|
|
};
|
|
|
|
% endfor
|