Mercurial > code > home > repos > infra
comparison net.py @ 162:e3212146960b
ditto networking
author | drewp@bigasterisk.com |
---|---|
date | Thu, 16 Mar 2023 17:48:32 -0700 |
parents | 2065998876e4 |
children | 087b84e68765 |
comparison
equal
deleted
inserted
replaced
161:1e0ad9fa7488 | 162:e3212146960b |
---|---|
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']: | 42 if host.name in ['slash', 'dash', 'ditto']: |
43 pass # don't break k3s networking! | 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: |
48 # files.put(dest="/etc/network/interfaces.d/wlan0", src="files/pi_wlan0_powersave") | 48 # files.put(dest="/etc/network/interfaces.d/wlan0", src="files/pi_wlan0_powersave") |