Skip to content

Commit

Permalink
Merge pull request #906 from srl-labs/0.27.1
Browse files Browse the repository at this point in the history
patch 0.27.1
  • Loading branch information
hellt authored Jun 7, 2022
2 parents c500e9f + 058880d commit 39860e1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/rn/0.27.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
* 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
3 changes: 3 additions & 0 deletions nodes/vr_vmx/vr-vmx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

Expand Down
1 change: 1 addition & 0 deletions nodes/vr_vqfx/vr-vqfx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 39860e1

Please sign in to comment.