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