Skip to content

Commit c8e1ea5

Browse files
committed
feat: add a new struct for backendnic fields
1 parent 5a2ad72 commit c8e1ea5

File tree

1 file changed

+22
-18
lines changed

1 file changed

+22
-18
lines changed

cns/NetworkContainerContract.go

+22-18
Original file line numberDiff line numberDiff line change
@@ -80,24 +80,28 @@ const (
8080

8181
// CreateNetworkContainerRequest specifies request to create a network container or network isolation boundary.
8282
type CreateNetworkContainerRequest struct {
83-
HostPrimaryIP string
84-
Version string
85-
NetworkContainerType string
86-
NetworkContainerid string // Mandatory input.
87-
PrimaryInterfaceIdentifier string // Primary CA.
88-
AuthorizationToken string
89-
LocalIPConfiguration IPConfiguration
90-
OrchestratorContext json.RawMessage
91-
IPConfiguration IPConfiguration
92-
SecondaryIPConfigs map[string]SecondaryIPConfig // uuid is key
93-
MultiTenancyInfo MultiTenancyInfo
94-
CnetAddressSpace []IPSubnet // To setup SNAT (should include service endpoint vips).
95-
Routes []Route
96-
AllowHostToNCCommunication bool
97-
AllowNCToHostCommunication bool
98-
EndpointPolicies []NetworkContainerRequestPolicies
99-
BackendNetworkInterfaceID string
100-
MACAddress string
83+
HostPrimaryIP string
84+
Version string
85+
NetworkContainerType string
86+
NetworkContainerid string // Mandatory input.
87+
PrimaryInterfaceIdentifier string // Primary CA.
88+
AuthorizationToken string
89+
LocalIPConfiguration IPConfiguration
90+
OrchestratorContext json.RawMessage
91+
IPConfiguration IPConfiguration
92+
SecondaryIPConfigs map[string]SecondaryIPConfig // uuid is key
93+
MultiTenancyInfo MultiTenancyInfo
94+
CnetAddressSpace []IPSubnet // To setup SNAT (should include service endpoint vips).
95+
Routes []Route
96+
AllowHostToNCCommunication bool
97+
AllowNCToHostCommunication bool
98+
EndpointPolicies []NetworkContainerRequestPolicies
99+
BackendNetworkInterfaceInfo backendNetworkInterfaceInfo
100+
}
101+
102+
type backendNetworkInterfaceInfo struct {
103+
BackendNetworkInterfaceID string
104+
MACAddress string
101105
}
102106

103107
// CreateNetworkContainerRequest implements fmt.Stringer for logging

0 commit comments

Comments
 (0)