Documentation ¶
Index ¶
- func BridgeToNic(bridge string) error
- func GatewayInit(...) error
- func GenerateMac() string
- func GetExec() kexec.Interface
- func GetK8sClusterRouter() (string, error)
- func GetNicName(brName string) string
- func NewClientset(conf *config.KubernetesConfig) (*kubernetes.Clientset, error)
- func NextIP(ip net.IP) net.IP
- func NicToBridge(iface string) (string, error)
- func RawExec(cmdPath string, args ...string) (string, string, error)
- func RemoveNode(nodeName string) error
- func RunIP(args ...string) (string, string, error)
- func RunNetsh(args ...string) (string, string, error)
- func RunOVNNbctl(args ...string) (string, string, error)
- func RunOVNNbctlHA(args ...string) (string, string, error)
- func RunOVNNbctlUnix(args ...string) (string, string, error)
- func RunOVNNbctlWithTimeout(timeout int, args ...string) (string, string, error)
- func RunOVSOfctl(args ...string) (string, string, error)
- func RunOVSVsctl(args ...string) (string, string, error)
- func RunPowershell(args ...string) (string, string, error)
- func RunRoute(args ...string) (string, string, error)
- func SetExec(exec kexec.Interface) error
- func StringArg(context *cli.Context, name string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BridgeToNic ¶ added in v0.3.0
BridgeToNic moves the IP address and routes of internal port of the bridge to underlying NIC interface and deletes the OVS bridge.
func GatewayInit ¶
func GatewayInit(clusterIPSubnet, nodeName, nicIP, physicalInterface, bridgeInterface, defaultGW, rampoutIPSubnet string, gatewayLBEnable bool) error
GatewayInit creates a gateway router for the local chassis.
func GetExec ¶ added in v0.3.11
GetExec returns the exec interface which can be used for running commands directly. Only use for passing an exec interface into pkg/config which cannot call this function directly because this module imports pkg/config already.
func GetK8sClusterRouter ¶
GetK8sClusterRouter returns back the OVN distibuted router
func GetNicName ¶ added in v0.3.0
GetNicName returns the physical NIC name, given an OVS bridge name configured by NicToBridge()
func NewClientset ¶ added in v0.2.0
func NewClientset(conf *config.KubernetesConfig) (*kubernetes.Clientset, error)
NewClientset creates a Kubernetes clientset from either a kubeconfig, TLS properties, or an apiserver URL
func NicToBridge ¶
NicToBridge creates a OVS bridge for the 'iface' and also moves the IP address and routes of 'iface' to OVS bridge.
func RawExec ¶ added in v0.3.11
RawExec runs the given command via the exec interface. Should only be used for early calls before configuration is read.
func RemoveNode ¶ added in v0.3.11
RemoveNode removes all the NB DB objects created for that node.
func RunOVNNbctl ¶
RunOVNNbctl runs a command via ovn-nbctl.
func RunOVNNbctlHA ¶ added in v0.3.11
RunOVNNbctlHA connects to multiple servers if they are provided as an input. If there is a single server provided, it assumes that it is local and uses Unix domain sockets for the connection.
func RunOVNNbctlUnix ¶ added in v0.3.0
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.
func RunOVNNbctlWithTimeout ¶
RunOVNNbctlWithTimeout runs command via ovn-nbctl with a specific timeout
func RunOVSOfctl ¶ added in v0.2.0
RunOVSOfctl runs a command via ovs-ofctl.
func RunOVSVsctl ¶
RunOVSVsctl runs a command via ovs-vsctl.
func RunPowershell ¶ added in v0.3.11
RunPowershell runs a command via the Windows powershell utility
Types ¶
This section is empty.