mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-24 19:38:01 +00:00
* add a helper to create two veth devices with IPv4/IPv6 infra * add a bond in active-backup mode with miimon value * add two slaves connections for two veth devices * check automated IPv4/IPv6 addresses are assigned to master * check all connections are present * add a helper to delete previously created veth device setup
25 lines
718 B
YAML
25 lines
718 B
YAML
# SPDX-License-Identifier: BSD-3-Clause
|
|
---
|
|
- name: Remove test interfaces
|
|
shell: |
|
|
ip link delete {{dhcp_interface1}}
|
|
ip link delete {{dhcp_interface2}}
|
|
ip link delete testbr
|
|
|
|
# Remove udev rule for NM to see veth devices starting with test*.....
|
|
rm -rf /etc/udev/rules.d/88-veth.rules
|
|
udevadm control --reload-rules
|
|
udevadm settle --timeout=5
|
|
|
|
|
|
- name: Stop dnsmasq/radvd services
|
|
shell: |
|
|
pkill -F /run/dhcp_testbr.pid
|
|
rm -rf /run/dhcp_testbr.pid
|
|
rm -rf /run/dhcp_testbr.lease
|
|
if grep 'release 6' /etc/redhat-release; then
|
|
# Stop radvd server
|
|
service radvd stop
|
|
iptables -D INPUT -i testbr -p udp --dport 67:68 --sport 67:68 -j ACCEPT
|
|
|
|
fi
|