Skip to content

Commit

Permalink
removed num_nics variable as it is removed in the upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Jan 28, 2021
1 parent 4c0b734 commit 9cf3123
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clab/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -540,14 +540,13 @@ func (c *CLab) NewNode(nodeName string, nodeCfg NodeConfig, idx int) error {

// env vars are used to set launch.py arguments in vrnetlab container
defEnv := map[string]string{
"NUM_NICS": "5",
"CONNECTION_MODE": "bridge"}
node.Env = mergeStringMaps(defEnv, envs)

// mount tftpboot dir
node.Binds = append(node.Binds, fmt.Sprint(path.Join(node.LabDir, "tftpboot"), ":/tftpboot"))

node.Cmd = fmt.Sprintf("--trace --num-nics %s --connection-mode %s --hostname %s --variant %s", node.Env["NUM_NICS"], node.Env["CONNECTION_MODE"], node.ShortName, node.NodeType)
node.Cmd = fmt.Sprintf("--trace --connection-mode %s --hostname %s --variant %s", node.Env["CONNECTION_MODE"], node.ShortName, node.NodeType)

case "vr-vmx":
node.Image = c.imageInitialization(&nodeCfg, node.Kind)
Expand Down

0 comments on commit 9cf3123

Please sign in to comment.