Documentation
¶
Index ¶
- func CreateConfig(server, token, rootCAFile string) (*restclient.Config, error)
- func GatewayInit(...) error
- func GenerateMac() string
- func GetK8sClusterRouter() (string, error)
- func NextIP(ip net.IP) net.IP
- func NicToBridge(iface string) error
- func PathExist(path string) bool
- func RestartOvnController() error
- func RunOVNNbctl(args ...string) (string, string, error)
- func RunOVNNbctlWithTimeout(timeout int, args ...string) (string, string, error)
- func RunOVSVsctl(args ...string) (string, string, error)
- func StartOVS() error
- func StartOvnNorthd() error
- func StringArg(context *cli.Context, name string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConfig ¶
func CreateConfig(server, token, rootCAFile string) (*restclient.Config, error)
CreateConfig creates the restclient.Config object from token, ca file and the apiserver (similar to what is obtainable from kubeconfig file)
func GatewayInit ¶
func GatewayInit(clusterIPSubnet, nodeName, nicIP, physicalInterface, bridgeInterface, defaultGW, rampoutIPSubnet string) error
GatewayInit creates a gateway router for the local chassis.
func GetK8sClusterRouter ¶
GetK8sClusterRouter returns back the OVN distibuted router
func NicToBridge ¶
NicToBridge creates a OVS bridge for the 'iface' and also moves the IP address and routes of 'iface' to OVS bridge.
func RestartOvnController ¶
func RestartOvnController() error
RestartOvnController restarts ovn-controller
func RunOVNNbctl ¶
RunOVNNbctl runs a command via ovs-nbctl.
func RunOVNNbctlWithTimeout ¶
RunOVNNbctlWithTimeout runs command via ovs-nbctl with a specific timeout
func RunOVSVsctl ¶
RunOVSVsctl runs a command via ovs-vsctl.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.