From 7fc7423553d7e42e2eab28552edc17492b45f155 Mon Sep 17 00:00:00 2001 From: elweb9858 Date: Mon, 14 Dec 2020 17:07:00 -0800 Subject: [PATCH] Updating L4WfpProxyPolicy struct --- hcn/hcnpolicy.go | 7 ++++--- hcn/hcnutils_test.go | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/hcn/hcnpolicy.go b/hcn/hcnpolicy.go index 634cbb248a..e52a281c3c 100644 --- a/hcn/hcnpolicy.go +++ b/hcn/hcnpolicy.go @@ -154,9 +154,10 @@ type FiveTuple struct { // L4WfpProxyPolicySetting sets Layer-4 Proxy on an endpoint. type L4WfpProxyPolicySetting struct { - Port string `json:",omitempty"` - FilterTuple FiveTuple `json:",omitempty"` - UserSID string `json:",omitempty"` + InboundProxyPort string `json:",omitempty"` + OutboundProxyPort string `json:",omitempty"` + FilterTuple FiveTuple `json:",omitempty"` + UserSID string `json:",omitempty"` } // PortnameEndpointPolicySetting sets the port name for an endpoint. diff --git a/hcn/hcnutils_test.go b/hcn/hcnutils_test.go index 77cad559fa..41f3e4c73a 100644 --- a/hcn/hcnutils_test.go +++ b/hcn/hcnutils_test.go @@ -235,7 +235,8 @@ func HcnCreateAcls() (*PolicyEndpointRequest, error) { func HcnCreateWfpProxyPolicyRequest() (*PolicyEndpointRequest, error) { policySetting := L4WfpProxyPolicySetting{ - Port: "80", + InboundProxyPort: "80", + OutboundProxyPort: "80", FilterTuple: FiveTuple{ Protocols: "6", RemoteAddresses: "10.0.0.4",