Skip to content

Commit

Permalink
avoid hard coded vlan for MTL
Browse files Browse the repository at this point in the history
  • Loading branch information
trad511 committed Oct 22, 2024
1 parent 0202267 commit d3a3820
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/cli/config/initialize/networks.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import (

csiFiles "github.com/Cray-HPE/cray-site-init/internal/files"
"github.com/Cray-HPE/cray-site-init/pkg/cli"
"github.com/Cray-HPE/cray-site-init/pkg/cli/config/initialize/sls"

"github.com/Cray-HPE/cray-site-init/pkg/networking"
)
Expand Down Expand Up @@ -137,7 +138,7 @@ func WriteCPTNetworkConfig(
network.NetworkName,
networking.ValidNetNames,
) {
if network.Vlan != 0 && network.NetworkName != "CHN" {
if network.Vlan != sls.DefaultMTLVlan && network.NetworkName != "CHN" {
csiFiles.WriteTemplate(
filepath.Join(
path,
Expand Down

0 comments on commit d3a3820

Please sign in to comment.