Skip to content

Commit

Permalink
Update netnsplan.yaml with routing and post-script
Browse files Browse the repository at this point in the history
  • Loading branch information
buty4649 committed Mar 20, 2024
1 parent d6dc137 commit 05dda85
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions sample/netnsplan.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
netns:
sample1:
ethernets:
eth0:
addresses:
- 192.168.10.1
eth1:
addresses:
- 192.168.20.1
route:
- to: default
via: 192.168.20.254
post-script: |
sysctl --system
iptables-restore /etc/iptables/rules.v4
sample2:
ethernets:
eth0:
eth2:
addresses:
- 172.16.10.1
dummy-devices:
Expand Down

0 comments on commit 05dda85

Please sign in to comment.