Skip to content

Commit c79a631

Browse files
authored
OutBoundNATPolicy Schema changes (#2106)
Signed-off-by: Debjit Mondal <[email protected]>
1 parent 62b77d5 commit c79a631

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

hcn/hcnpolicy.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,11 @@ type QosPolicySetting struct {
144144

145145
// OutboundNatPolicySetting sets outbound Network Address Translation on an Endpoint.
146146
type OutboundNatPolicySetting struct {
147-
VirtualIP string `json:",omitempty"`
148-
Exceptions []string `json:",omitempty"`
149-
Destinations []string `json:",omitempty"`
150-
Flags NatFlags `json:",omitempty"`
147+
VirtualIP string `json:",omitempty"`
148+
Exceptions []string `json:",omitempty"`
149+
Destinations []string `json:",omitempty"`
150+
Flags NatFlags `json:",omitempty"`
151+
MaxPortPoolUsage uint16 `json:",omitempty"`
151152
}
152153

153154
// SDNRoutePolicySetting sets SDN Route on an Endpoint.

internal/hns/hnspolicy.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ type PaPolicy struct {
5757

5858
type OutboundNatPolicy struct {
5959
Policy
60-
VIP string `json:"VIP,omitempty"`
61-
Exceptions []string `json:"ExceptionList,omitempty"`
62-
Destinations []string `json:",omitempty"`
60+
VIP string `json:"VIP,omitempty"`
61+
Exceptions []string `json:"ExceptionList,omitempty"`
62+
Destinations []string `json:",omitempty"`
63+
MaxPortPoolUsage uint16 `json:",omitempty"`
6364
}
6465

6566
type ProxyPolicy struct {

0 commit comments

Comments
 (0)