File tree Expand file tree Collapse file tree 2 files changed +15
-13
lines changed Expand file tree Collapse file tree 2 files changed +15
-13
lines changed Original file line number Diff line number Diff 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
1429func CreateHnsNetwork (nwConfig cns.CreateHnsNetworkRequest ) error {
1530 log .Printf ("[Azure CNS] CreateHnsNetwork" )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments