@@ -109,17 +109,18 @@ type CreateNetworkContainerRequest struct {
109
109
AllowNCToHostCommunication bool
110
110
EndpointPolicies []NetworkContainerRequestPolicies
111
111
NCStatus v1alpha.NCStatus
112
- networkInterfaceInfo NetworkInterfaceInfo //nolint // introducing new field for backendnic, to be used later by cni code
112
+ NetworkInterfaceInfo NetworkInterfaceInfo //nolint // introducing new field for backendnic, to be used later by cni code
113
113
}
114
114
115
115
// CreateNetworkContainerRequest implements fmt.Stringer for logging
116
116
func (req * CreateNetworkContainerRequest ) String () string {
117
117
return fmt .Sprintf ("CreateNetworkContainerRequest" +
118
118
"{Version: %s, NetworkContainerType: %s, NetworkContainerid: %s, PrimaryInterfaceIdentifier: %s, " +
119
119
"LocalIPConfiguration: %+v, IPConfiguration: %+v, SecondaryIPConfigs: %+v, MultitenancyInfo: %+v, " +
120
- "AllowHostToNCCommunication: %t, AllowNCToHostCommunication: %t, NCStatus: %s}" ,
120
+ "AllowHostToNCCommunication: %t, AllowNCToHostCommunication: %t, NCStatus: %s, NetworkInterfaceInfo: %+v }" ,
121
121
req .Version , req .NetworkContainerType , req .NetworkContainerid , req .PrimaryInterfaceIdentifier , req .LocalIPConfiguration ,
122
- req .IPConfiguration , req .SecondaryIPConfigs , req .MultiTenancyInfo , req .AllowHostToNCCommunication , req .AllowNCToHostCommunication , string (req .NCStatus ))
122
+ req .IPConfiguration , req .SecondaryIPConfigs , req .MultiTenancyInfo , req .AllowHostToNCCommunication , req .AllowNCToHostCommunication ,
123
+ string (req .NCStatus ), req .NetworkInterfaceInfo )
123
124
}
124
125
125
126
// NetworkContainerRequestPolicies - specifies policies associated with create network request
@@ -322,7 +323,7 @@ type MultiTenancyInfo struct {
322
323
}
323
324
324
325
type NetworkInterfaceInfo struct {
325
- NICType string
326
+ NICType NICType
326
327
MACAddress string
327
328
}
328
329
@@ -418,6 +419,7 @@ type GetNetworkContainerResponse struct {
418
419
Response Response
419
420
AllowHostToNCCommunication bool
420
421
AllowNCToHostCommunication bool
422
+ NetworkInterfaceInfo NetworkInterfaceInfo
421
423
}
422
424
423
425
type PodIpInfo struct {
0 commit comments