Skip to content

Commit

Permalink
added constant for srl default type
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Dec 18, 2020
1 parent bf6b05d commit 53c7b4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clab/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const (
dockerNetName = "clab"
dockerNetIPv4Addr = "172.20.20.0/24"
dockerNetIPv6Addr = "2001:172:20:20::/80"

srlDefaultType = "ixr6"
)

// supported kinds
Expand Down Expand Up @@ -239,7 +241,7 @@ func (c *cLab) typeInit(nodeCfg *NodeConfig, kind string) string {
// default type if not defined
switch nodeCfg.Kind {
case "srl":
return "ixr6"
return srlDefaultType
}
return ""
}
Expand Down

0 comments on commit 53c7b4c

Please sign in to comment.