Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BridgesToNicCommand = cli.Command{ Name: "bridges-to-nic", Usage: "Delete ovs bridge and move IP/routes to underlying NIC", Flags: []cli.Flag{}, Action: func(context *cli.Context) error { args := context.Args() if len(args) == 0 { return fmt.Errorf("Please specify list of bridges") } var errorList []error for _, bridge := range args { if err := util.BridgeToNic(bridge); err != nil { errorList = append(errorList, err) } } return errors.NewAggregate(errorList) }, }
BridgesToNicCommand removes a NIC interface from OVS bridge and deletes the bridge
View Source
var NicsToBridgeCommand = cli.Command{ Name: "nics-to-bridge", Usage: "Create ovs bridge for nic interfaces", Flags: []cli.Flag{}, Action: func(context *cli.Context) error { args := context.Args() if len(args) == 0 { return fmt.Errorf("Please specify list of nic interfaces") } var errorList []error for _, nic := range args { if _, err := util.NicToBridge(nic); err != nil { errorList = append(errorList, err) } } return errors.NewAggregate(errorList) }, }
NicsToBridgeCommand creates ovs bridge for provided nic interfaces.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.