Container environment.
root@kind:~/kind/Cilium# cat vyos.yaml
a simple topo of two alpine containers connected with each other
name: vyos
topology:
nodes:
vyos1:
kind: linux
# user: vyos
image: afla/vyos:1.4
cmd: /sbin/init
binds:
- vyos-config:/opt/vyatta/etc/config/
- /lib/modules:/lib/modules
exec:
- ip addr add 100.1.1.1/24 dev eth1
- ip addr add 100.1.2.1/24 dev eth2
vyos2:
kind: linux
image: alpine:latest
exec:
- ip addr add 100.1.1.2/24 dev eth1
- ip addr add 100.1.2.2/24 dev eth2
links:
- endpoints: [“vyos1:eth1”,“vyos2:eth1”]
- endpoints: [“vyos1:eth2”,“vyos2:eth2”]
root@kind:~/kind/Cilium#
when start the container and config some into the system. we can see that:
vyos@vyos# exit
Cannot exit: configuration modified.
Use ‘exit discard’ to discard the changes and exit.
[edit]
vyos@vyos# commit
Configuration system temporarily locked due to another commit in progress
[edit]
vyos@vyos# exit