Flush entire interface rather than just routes
This patch changes the flush routes handler to flush the entire interface config from the interface. This is needed because systemd-networkd does not restore the route of non-DHCP interfaces when flushing routes and restarting systemd-networks. Change-Id: I17748b0dd2307fd9bee705140c67883140090298 Signed-off-by: Major Hayden <major@mhtx.net>
This commit is contained in:
parent
f89140f478
commit
c36980380e
|
@ -48,8 +48,11 @@
|
|||
retries: 3
|
||||
listen: Lxc container restart
|
||||
|
||||
- name: Flush routes
|
||||
command: "ip route flush table main"
|
||||
- name: Flush addresses
|
||||
command: "ip addr flush {{ item.value.interface }}"
|
||||
with_dict: "{{ lxc_container_networks_combined }}"
|
||||
when:
|
||||
- item.value.interface is defined
|
||||
listen: Restart networkd
|
||||
|
||||
- name: Restart systemd-networkd
|
||||
|
|
Loading…
Reference in New Issue