You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[`spec-v1.0.0`](https://github.com/microsoft/windows-container-networking/cni/releases/tag/spec-v1.0.0)|[spec at v1.0.0](https://github.com/microsoft/windows-container-networking/cni/blob/spec-v1.0.0/SPEC.md)|Removed non-list configurations; removed `version` field of `interfaces` array|
34
+
|[`spec-v1.0.0`](https://github.com/microsoft/windows-container-networking/cni/releases/tag/spec-v1.0.0)|[spec at v1.0.0](https://github.com/microsoft/windows-container-networking/cni/blob/spec-v1.0.0/SPEC.md)|Initial draft|
34
35
35
36
*Do not rely on these tags being stable. In the future, we may change our mind about which particular commit is the right marker for a given historical spec version.*
36
37
@@ -76,7 +77,10 @@ Below sections specify the JSON format that needs to be passed after [encoding](
76
77
-`LocalEndpoint` (string): IP Address of the local endpoint. Used to configure default policies for the endpoint. This parameter is *MANDATORY*.
77
78
-`InfraPrefix` (string): CIDR of the management network of the underlying node. Used to configure default policies for the network. This parameter is *MANDATORY*.
78
79
-`AddditionalPolicies` (dictionary): Defined [here](#configure-additional-policies). This parameter is *NOT MANDATORY*.
79
-
### Configure Additional Policies
80
+
-`InfraParams` (dictionary): This parameter contains configurations that are not translated into any CNI conf field, it is only meaningful to the infrastructure layer. This parameter is *NOT MANDATORY*.
81
+
- `DhcpEnabled` (boolean): Set to true if the container host management interface is expected to have a DHCP leased IP. This parameter is *NOT MANDATORY*.
82
+
- `DhcpCheckTimeout` (integer): Wait for this time interval in seconds for the DHCP IP to get assigned before creating the HNS Network and generating the CNI conf. This parameter is *NOT MANDATORY*. This parameter can only be set if 'DhcpEnabled' field is set to true.
83
+
### Configure Additional Policies
80
84
#### ACL Policy
81
85
There are few system-defined default ACL policies. Users can configure additional ACL polices with below parameters.
82
86
-`RemoteAddresses` (string): This parameter is *NOT MANDATORY*.
@@ -91,8 +95,8 @@ There are few system-defined default ACL policies. Users can configure additiona
91
95
#### OutBound NAT Policy
92
96
-`Exceptions` (string[]): List of IP Addresses/CIDRs to allow NATed outbound traffic. This parameter is *MANDATORY*.
93
97
#### SDNRoute Policy
94
-
-`DestinationPrefix` (string): .This parameter is *MANDATORY*.
95
-
-`NeedEncap` (bool): . This parameter is *MANDATORY*.
98
+
-`DestinationPrefix` (string): This parameter is *MANDATORY*.
99
+
-`NeedEncap` (bool): This parameter is *MANDATORY*.
96
100
## Appendix: Examples
97
101
### Basic Conf
98
102
```jsonc
@@ -144,6 +148,18 @@ There are few system-defined default ACL policies. Users can configure additiona
set-variable-name DEFAULT_PRIORITY -value ([string]"-1") -Scope Script # Used to help in sorting the policies based on priority even if priority is not specified by user
Write-Verbose-Message ("DHCP Check timeout should be a multiple of 10 and have a value between {0} - {1}. Invalid dhcp check timeout parameter: {2}"-f$script:DHCP_CHECK_TIMEOUT_MIN,$script:DHCP_CHECK_TIMEOUT_MAX,$cniArgsInfraParams.DhcpCheckTimeout)
0 commit comments