Documentation
¶
Index ¶
- func GatewayInit(...) error
- func GenerateMac() string
- func GetK8sClusterRouter() (string, error)
- func NewClientset(conf *config.KubernetesConfig) (*kubernetes.Clientset, 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 RunOVSOfctl(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 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 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 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 RunOVSOfctl ¶ added in v0.2.0
RunOVSOfctl runs a command via ovs-ofctl.
func RunOVSVsctl ¶
RunOVSVsctl runs a command via ovs-vsctl.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.