cd "$(dirname "$0")"
examples="$(pwd)/../examples"
+PATH="$(pwd)/..:$PATH"
+export PATH
+
# No network namespaces (yet)
test -z "$(ip netns)"
cd "$examples/readme"
-../../linux-network-namespace-labs up lab.conf
+linux-network-namespace-labs up lab.conf
ip netns exec r1 ping -c1 r1-loop
ip netns exec r1 ping -c1 r2-loop
ip netns exec r1 ping -c1 r3-loop
-../../linux-network-namespace-labs down lab.conf
+linux-network-namespace-labs down lab.conf
test -z "$(ip netns)"
test "$(cd /etc/netns; find)" = "." # directory empty
cd "$examples/bird-ospf"
-../../linux-network-namespace-labs up lab.conf
+linux-network-namespace-labs up lab.conf
# Wait until OSPF is ready
wait_for_route r1 3fff::1
wait_for_route r1 3fff::2
ip netns exec r1 ping -c1 r1-loop
ip netns exec r1 ping -c1 r2-loop
ip netns exec r1 ping -c1 r3-loop
-../../linux-network-namespace-labs down lab.conf
+linux-network-namespace-labs down lab.conf
+test -z "$(ip netns)"
+test "$(cd /etc/netns; find)" = "." # directory empty
+
+cd "$examples/podman-frr"
+./run.sh
+wait_for_route r1 3fff::1
+ip netns exec r1 ping -c1 r1-loop
+linux-network-namespace-labs down lab.conf
test -z "$(ip netns)"
test "$(cd /etc/netns; find)" = "." # directory empty