comparison net.py @ 275:058c312ffdce

new host `pillow`
author drewp@bigasterisk.com
date Sat, 23 Mar 2024 14:20:20 -0700
parents 33d2de3d7e70
children 4e424a144183
comparison
equal deleted inserted replaced
274:e9ff0339b096 275:058c312ffdce
37 'update-alternatives --set iptables /usr/sbin/iptables-legacy', 37 'update-alternatives --set iptables /usr/sbin/iptables-legacy',
38 'update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy', 38 'update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy',
39 ]) 39 ])
40 # needs reboot if this changed 40 # needs reboot if this changed
41 41
42 if host.name in ['slash', 'dash', 'dot', 'squib']: 42 if host.name in ['slash', 'dash', 'dot', 'squib', 'pillow']:
43 pass # don't break k3s networking! the else-part really breaks it 43 pass # don't break k3s networking! the else-part really breaks it
44 else: 44 else:
45 server.sysctl(key='net.ipv6.conf.all.disable_ipv6', value=1, persist=True) 45 server.sysctl(key='net.ipv6.conf.all.disable_ipv6', value=1, persist=True)
46 46
47 # if is_wifi_pi: 47 # if is_wifi_pi: