@@ -16,6 +16,9 @@ const (
1616 overlaycniName = "azure" //nolint:unused,deadcode,varcheck // used in linux
1717 overlaycniType = "azure-vnet" //nolint:unused,deadcode,varcheck // used in linux
1818 nodeLocalDNSIP = "169.254.20.10" //nolint:unused,deadcode,varcheck // used in linux
19+ azurecniVersion = "0.3.0" //nolint:unused,deadcode,varcheck // used in linux
20+ azureName = "azure" //nolint:unused,deadcode,varcheck // used in linux
21+ azureType = "azure-vnet" //nolint:unused,deadcode,varcheck // used in linux
1922)
2023
2124// cniConflist represents the containernetworking/cni/pkg/types.NetConfList
@@ -63,6 +66,11 @@ type CiliumGenerator struct {
6366 Writer io.WriteCloser
6467}
6568
69+ // SWIFTGenerator generates the Azure CNI conflist for the SWIFT scenario
70+ type SWIFTGenerator struct {
71+ Writer io.WriteCloser
72+ }
73+
6674func (v * V4OverlayGenerator ) Close () error {
6775 if err := v .Writer .Close (); err != nil {
6876 return errors .Wrap (err , "error closing generator" )
@@ -94,3 +102,11 @@ func (v *CiliumGenerator) Close() error {
94102
95103 return nil
96104}
105+
106+ func (v * SWIFTGenerator ) Close () error {
107+ if err := v .Writer .Close (); err != nil {
108+ return errors .Wrap (err , "error closing generator" )
109+ }
110+
111+ return nil
112+ }
0 commit comments