Support for Open vSwitch - module with basic Open vSwitch commands.
Suitable for setting up Openstack Neutron.
codeauthor: | Jiri Kotlin <jiri.kotlin@ultimum.io> |
---|
salt.modules.openvswitch.
bridge_create
(br, may_exist=True)¶Creates a new bridge.
2015.8.1 新版功能.
CLI Example: .. code-block:: bash
salt '*' openvswitch.bridge_create br0
salt.modules.openvswitch.
bridge_delete
(br, if_exists=True)¶Deletes bridge and all of its ports.
2015.8.1 新版功能.
CLI Example: .. code-block:: bash
salt '*' openvswitch.bridge_delete br0
salt.modules.openvswitch.
bridge_exists
(br)¶Tests whether bridge exists as a real or fake bridge.
2015.8.1 新版功能.
CLI Example: .. code-block:: bash
salt '*' openvswitch.bridge_exists br0
salt.modules.openvswitch.
bridge_list
()¶Lists all existing real and fake bridges.
2015.8.1 新版功能.
CLI Example: .. code-block:: bash
salt '*' openvswitch.bridge_list
salt.modules.openvswitch.
interface_get_options
(port)¶Port's interface's optional parameters.
2015.8.2 新版功能.
CLI Example: .. code-block:: bash
salt '*' openvswitch.interface_get_options tap0
salt.modules.openvswitch.
interface_get_type
(port)¶Type of port's interface.
2015.8.2 新版功能.
CLI Example: .. code-block:: bash
salt '*' openvswitch.interface_get_type tap0
salt.modules.openvswitch.
port_add
(br, port, may_exist=False)¶Creates on bridge a new port named port.
2015.8.1 新版功能.
CLI Example: .. code-block:: bash
salt '*' openvswitch.port_add br0 8080
salt.modules.openvswitch.
port_create_gre
(br, port, id, remote)¶Generic Routing Encapsulation - creates GRE tunnel between endpoints.
2015.8.2 新版功能.
CLI Example: .. code-block:: bash
salt '*' openvswitch.port_create_gre br0 gre1 5001 192.168.1.10
salt.modules.openvswitch.
port_create_vlan
(br, port, id)¶Isolate VM traffic using VLANs.
2015.8.2 新版功能.
CLI Example: .. code-block:: bash
salt '*' openvswitch.port_create_vlan br0 tap0 100
salt.modules.openvswitch.
port_create_vxlan
(br, port, id, remote, dst_port=None)¶Virtual eXtensible Local Area Network - creates VXLAN tunnel between endpoints.
2015.8.2 新版功能.
CLI Example: .. code-block:: bash
salt '*' openvswitch.port_create_vxlan br0 vx1 5001 192.168.1.10 8472
salt.modules.openvswitch.
port_get_tag
(port)¶Lists tags of the port.
2015.8.2 新版功能.
CLI Example: .. code-block:: bash
salt '*' openvswitch.port_get_tag tap0
salt.modules.openvswitch.
port_list
(br)¶Lists all of the ports within bridge.
2015.8.1 新版功能.
CLI Example: .. code-block:: bash
salt '*' openvswitch.port_list br0
salt.modules.openvswitch.
port_remove
(br, port, if_exists=True)¶Deletes port.
2015.8.1 新版功能.
CLI Example: .. code-block:: bash
salt '*' openvswitch.port_remove br0 8080