# Functions
BuildCNIArgs builds cni args as string such as key1=val1;key2=val2.
CmdAdd saves networkInfos to disk and executes each cni binary to setup network.
CmdDel restores networkInfos from disk and executes each cni binary to delete network.
ConfigureIface takes the result of IPAM plugin and applies to the ifName interface.
DelegateAdd calles delegate cni binary to execute cmdAdd.
DelegateDel calles delegate cni binary to execute cmdDEL.
No description provided by the author
IPInfoToResult converts IPInfo to Result.
NewNetworkInfo creates a NetworkInfo.
ParseCNIArgs parses `key1=val1;key2=val2` format cni args from string.
# Constants
CNI_ARGS="IP=192.168.33.3" CNI_COMMAND="ADD" CNI_CONTAINERID=ctn1 CNI_NETNS=/var/run/netns/ctn CNI_IFNAME=eth0 CNI_PATH=$CNI_PATH.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
NetworkInfo wraps network infos which are needed for cni plugin to setup network.