diff --git a/docs/rn/0.27.md b/docs/rn/0.27.md index b8c3b6c41..6482d396f 100644 --- a/docs/rn/0.27.md +++ b/docs/rn/0.27.md @@ -12,4 +12,10 @@ We finally added support to provision vMX and vQFX with startup configuration. T ## Misc -* SR Linux nodes will be able to use the names of the other nodes of the same #891 \ No newline at end of file +* SR Linux nodes will be able to use the names of the other nodes of the same #891 + +## Patches + +### 0.27.1 + +* adding missing config dir mount for vMX \ No newline at end of file diff --git a/nodes/vr_vmx/vr-vmx.go b/nodes/vr_vmx/vr-vmx.go index 8d8adf9a3..02be2b59f 100644 --- a/nodes/vr_vmx/vr-vmx.go +++ b/nodes/vr_vmx/vr-vmx.go @@ -62,6 +62,9 @@ func (s *vrVMX) Init(cfg *types.NodeConfig, opts ...nodes.NodeOption) error { } s.cfg.Env = utils.MergeStringMaps(defEnv, s.cfg.Env) + // mount config dir to support startup-config functionality + s.cfg.Binds = append(s.cfg.Binds, fmt.Sprint(path.Join(s.cfg.LabDir, configDirName), ":/config")) + s.cfg.Cmd = fmt.Sprintf("--username %s --password %s --hostname %s --connection-mode %s --trace", s.cfg.Env["USERNAME"], s.cfg.Env["PASSWORD"], s.cfg.ShortName, s.cfg.Env["CONNECTION_MODE"]) diff --git a/nodes/vr_vqfx/vr-vqfx.go b/nodes/vr_vqfx/vr-vqfx.go index 55df01e4e..b9ad92ad1 100644 --- a/nodes/vr_vqfx/vr-vqfx.go +++ b/nodes/vr_vqfx/vr-vqfx.go @@ -63,6 +63,7 @@ func (s *vrVQFX) Init(cfg *types.NodeConfig, opts ...nodes.NodeOption) error { } s.cfg.Env = utils.MergeStringMaps(defEnv, s.cfg.Env) + // mount config dir to support startup-config functionality s.cfg.Binds = append(s.cfg.Binds, fmt.Sprint(path.Join(s.cfg.LabDir, configDirName), ":/config")) if s.cfg.Env["CONNECTION_MODE"] == "macvtap" {