Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cns/NetworkContainerContract.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions cns/restserver/restserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down