# Functions
BridgeToNic moves the IP address and routes of internal port of the bridge to underlying NIC interface and deletes the OVS bridge.
GatewayInit creates a gateway router for the local chassis.
GenerateMac generates mac address.
GetExec returns the exec interface which can be used for running commands directly.
GetK8sClusterRouter returns back the OVN distibuted router.
GetNicName returns the physical NIC name, given an OVS bridge name configured by NicToBridge().
NewClientset creates a Kubernetes clientset from either a kubeconfig, TLS properties, or an apiserver URL.
NextIP returns IP incremented by 1.
NicToBridge creates a OVS bridge for the 'iface' and also moves the IP address and routes of 'iface' to OVS bridge.
RawExec runs the given command via the exec interface.
RemoveNode removes all the NB DB objects created for that node.
RunIP runs a command via the iproute2 "ip" utility.
RunNetsh runs a command via the Windows netsh utility.
RunOVNNbctl runs a command via ovn-nbctl.
RunOVNNbctlHA connects to multiple servers if they are provided as an input.
RunOVNNbctlUnix runs command via ovn-nbctl, with ovn-nbctl using the unix domain sockets to connect to the ovsdb-server backing the OVN NB database.
RunOVNNbctlWithTimeout runs command via ovn-nbctl with a specific timeout.
RunOVSOfctl runs a command via ovs-ofctl.
RunOVSVsctl runs a command via ovs-vsctl.
RunPowershell runs a command via the Windows powershell utility.
RunRoute runs a command via the Windows route utility.
SetExec validates executable paths and saves the given exec interface to be used for running various OVS and OVN utilites.
StringArg gets the named command-line argument or returns an error if it is empty.