Skip to content

Commit

Permalink
Add postinit
Browse files Browse the repository at this point in the history
  • Loading branch information
watal committed Jun 8, 2022
1 parent b2a62a2 commit 88371e6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/sr-mpls_l3vpn/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ preinit:
- cmd: modprobe mpls_gso
- cmd: modprobe mpls_iptunnel

postinit:
- cmds:
- cmd: docker cp polad/polad.yaml pola:/config.yaml

nodes:
- name: pola
image: watal/pola:latest
Expand Down Expand Up @@ -54,7 +58,8 @@ switches:
node_configs:
- name: pola
cmds:
- cmd: ip a add 10.0.255.254/24 dev net0
- cmd: 'ip a add 10.0.255.254/24 dev net0'
- cmd: '/root/go/bin/polad -f config.yaml > /dev/null 2>&1 &'
- name: pe01
cmds:
- cmd: /usr/lib/frr/frr start
Expand Down

0 comments on commit 88371e6

Please sign in to comment.