Skip to content

Commit 01f722b

Browse files
authored
Moving some Hns const variables. (#348)
1 parent a75fbe7 commit 01f722b

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

cns/hnsclient/hnsclient_windows.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,21 @@ import (
1010
"github.com/Microsoft/hcsshim"
1111
)
1212

13+
const (
14+
// Name of the external hns network
15+
ExtHnsNetworkName = "ext"
16+
17+
// Address prefix for external hns network
18+
ExtHnsNetworkAddressPrefix = "192.168.255.0/30"
19+
20+
// Gateway address for external hns network
21+
ExtHnsNetworkGwAddress = "192.168.255.1"
22+
23+
// HNS network types
24+
hnsL2Bridge = "l2bridge"
25+
hnsL2Tunnel = "l2tunnel"
26+
)
27+
1328
// CreateHnsNetwork creates the HNS network with the provided configuration
1429
func CreateHnsNetwork(nwConfig cns.CreateHnsNetworkRequest) error {
1530
log.Printf("[Azure CNS] CreateHnsNetwork")

platform/os_windows.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,6 @@ const (
5050

5151
// Command to restart HNS service
5252
RestartHnsServiceCommand = "Restart-Service -Name hns"
53-
54-
// Name of the external hns network
55-
ExtHnsNetworkName = "ext"
56-
57-
// Address prefix for external hns network
58-
ExtHnsNetworkAddressPrefix = "192.168.255.0/30"
59-
60-
// Gateway address for external hns network
61-
ExtHnsNetworkGwAddress = "192.168.255.1"
62-
63-
// HNS network types
64-
hnsL2Bridge = "l2bridge"
65-
hnsL2Tunnel = "l2tunnel"
6653
)
6754

6855
// Flag to check if sdnRemoteArpMacAddress registry key is set

0 commit comments

Comments
 (0)