Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions cns/hnsclient/hnsclient_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,21 @@ import (
"github.com/Microsoft/hcsshim"
)

const (
// Name of the external hns network
ExtHnsNetworkName = "ext"

// Address prefix for external hns network
ExtHnsNetworkAddressPrefix = "192.168.255.0/30"

// Gateway address for external hns network
ExtHnsNetworkGwAddress = "192.168.255.1"

// HNS network types
hnsL2Bridge = "l2bridge"
hnsL2Tunnel = "l2tunnel"
)

// CreateHnsNetwork creates the HNS network with the provided configuration
func CreateHnsNetwork(nwConfig cns.CreateHnsNetworkRequest) error {
log.Printf("[Azure CNS] CreateHnsNetwork")
Expand Down
13 changes: 0 additions & 13 deletions platform/os_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,6 @@ const (

// Command to restart HNS service
RestartHnsServiceCommand = "Restart-Service -Name hns"

// Name of the external hns network
ExtHnsNetworkName = "ext"

// Address prefix for external hns network
ExtHnsNetworkAddressPrefix = "192.168.255.0/30"

// Gateway address for external hns network
ExtHnsNetworkGwAddress = "192.168.255.1"

// HNS network types
hnsL2Bridge = "l2bridge"
hnsL2Tunnel = "l2tunnel"
)

// Flag to check if sdnRemoteArpMacAddress registry key is set
Expand Down