Skip to content

Commit 1ccb341

Browse files
author
Jaeryn
committed
feat: update cns network container contract for swift 2
1 parent f28fe96 commit 1ccb341

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

cns/NetworkContainerContract.go

+18
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@ const (
7070
Vxlan = "Vxlan"
7171
)
7272

73+
type NICType string
74+
75+
// NIC Types
76+
const (
77+
InfraNIC NICType = "InfraNIC"
78+
// Delegated VM NICs are projected from VM to container network namespace
79+
DelegatedVMNIC NICType = "DelegatedVMNIC"
80+
)
81+
7382
// ChannelMode :- CNS channel modes
7483
const (
7584
Direct = "Direct"
@@ -406,6 +415,15 @@ type PodIpInfo struct {
406415
PodIPConfig IPSubnet
407416
NetworkContainerPrimaryIPConfig IPConfiguration
408417
HostPrimaryIPInfo HostIPInfo
418+
// NICType defines whether NIC is InfraNIC or DelegatedVMNIC
419+
NICType NICType
420+
InterfaceName string
421+
// MacAddress of interface
422+
MacAddress string
423+
// SkipDefaultRoutes is true if default routes should not be added on interface
424+
SkipDefaultRoutes bool
425+
// Routes to configure on interface
426+
Routes []Route
409427
}
410428

411429
type HostIPInfo struct {

0 commit comments

Comments
 (0)