bundlewrap/bundles/wide-dhcp6c/metadata.py

28 lines
586 B
Python
Raw Normal View History

defaults = {
'apt': {
'packages': {
'wide-dhcpv6-client': {},
},
},
'iptables': {
'bundle_rules': {
'wide-dhcp6c': [
'ip6tables -A INPUT -p udp -s ff00::/12 -j ACCEPT',
'ip6tables -A INPUT -p udp -s fe80::/10 -j ACCEPT',
],
},
},
'wide-dhcp6c': {
'subnet_len': '8',
},
}
if node.has_bundle('pppd'):
defaults.update({
'pppd': {
'wait-until-stopped': {
'wide-dhcpv6-client.service',
},
}
})