From 5c5b1001f5a87ed9deb919734e6896e4a3ba409f Mon Sep 17 00:00:00 2001 From: Vivek Aggarwal Date: Mon, 25 Mar 2019 16:43:34 -0700 Subject: [PATCH] Orcas change --- cns/NetworkContainerContract.go | 2 ++ cns/restserver/restserver.go | 1 + 2 files changed, 3 insertions(+) diff --git a/cns/NetworkContainerContract.go b/cns/NetworkContainerContract.go index 263e19bf2d..9575a2829c 100644 --- a/cns/NetworkContainerContract.go +++ b/cns/NetworkContainerContract.go @@ -56,6 +56,7 @@ type CreateNetworkContainerRequest struct { MultiTenancyInfo MultiTenancyInfo CnetAddressSpace []IPSubnet // To setup SNAT (should include service endpoint vips). Routes []Route + AllowHostToNCCommunication bool } // ConfigureContainerNetworkingRequest - specifies request to attach/detach container to network. @@ -135,6 +136,7 @@ type GetNetworkContainerResponse struct { PrimaryInterfaceIdentifier string LocalIPConfiguration IPConfiguration Response Response + AllowHostToNCCommunication bool } // DeleteNetworkContainerRequest specifies the details about the request to delete a specifc network container. diff --git a/cns/restserver/restserver.go b/cns/restserver/restserver.go index 52650a2050..586986a946 100644 --- a/cns/restserver/restserver.go +++ b/cns/restserver/restserver.go @@ -1207,6 +1207,7 @@ func (service *HTTPRestService) getNetworkContainerResponse(req cns.GetNetworkCo MultiTenancyInfo: savedReq.MultiTenancyInfo, PrimaryInterfaceIdentifier: savedReq.PrimaryInterfaceIdentifier, LocalIPConfiguration: savedReq.LocalIPConfiguration, + AllowHostToNCCommunication: savedReq.AllowHostToNCCommunication, } return getNetworkContainerResponse