Skip to content

Commit

Permalink
updates lab examples
Browse files Browse the repository at this point in the history
  • Loading branch information
networkop committed Jul 6, 2021
1 parent 960513e commit c4c9cca
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
1 change: 0 additions & 1 deletion lab-examples/cvx02/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
Example of how to run `cvx` nodes inside docker runtime.

> **Note 1** : cvx may take up to a minute to configure IP on swp12. This is due to it defaulting to DHCP'ing first.
10 changes: 10 additions & 0 deletions lab-examples/cvx02/sw1/interfaces
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
auto lo
iface lo inet loopback

auto mgmt
iface mgmt
vrf-table auto

auto eth0
iface eth0
vrf mgmt

auto swp12
iface swp12
Expand Down
2 changes: 1 addition & 1 deletion lab-examples/cvx02/topo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ topology:
image: networkop/cx:4.3.0
runtime: docker
binds:
- sw1/interfaces:/etc/network/interfaces.d/host-mounts
- sw1/interfaces:/etc/network/interfaces
h1:
kind: linux
image: networkop/host:ifreload
Expand Down
5 changes: 5 additions & 0 deletions nodes/cvx/cvx.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ func (c *cvx) PostDeploy(ctx context.Context, ns map[string]nodes.Node) error {
func (c *cvx) GetImages() map[string]string {
images := make(map[string]string)
images[nodes.ImageKey] = c.cfg.Image

if c.runtime.GetName() != runtime.IgniteRuntime {
return images
}

images[nodes.KernelKey] = c.cfg.Kernel
images[nodes.SandboxKey] = c.cfg.Sandbox
return images
Expand Down

0 comments on commit c4c9cca

Please sign in to comment.