5.6.5.16. vlcp.service.sdn.vtepcontroller

Note

This document is generated from the source file.

View Source on GitHub

Created on 2016/12/1

author:hubo
class vlcp.service.sdn.vtepcontroller.VtepConnectionSynchronized(*args, **kwargs)
class vlcp.service.sdn.vtepcontroller.VtepController(server)

Controll a physical switch which supports OVSDB hardware_vtep protocol.

__init__(server)

Constructor

listphysicalports(physicalswitch=None)

Get physical ports list from this controller, grouped by physical switch name

Parameters:physicalswitch – physicalswitch name. Return all switches if is None.
Returns:dictionary: {physicalswitch: [physicalports]} e.g. {‘ps1’: [‘port1’, ‘port2’]}
listphysicalswitches(physicalswitch=None)

Get physical switch info

Parameters:physicalswitch – physicalswitch name. Return all switches if is None.
Returns:dictionary: {physicalswitch: {key: value}} keys include: management_ips, tunnel_ips, description, switch_fault_status
unbindlogicalswitch(physicalswitch, physicalport, vlanid, logicalnetwork)

Remove bind of a physical port

Parameters:
  • physicalswitch – physical switch name, should be the name in PhysicalSwitch table of OVSDB vtep database
  • physicalport – physical port name, should be the name in OVSDB vtep database
  • vlanid – the vlan tag used for this logicalswitch
  • logicalnetwork – the logical network id, will also be the logical switch id
unbindphysicalport(physicalswitch, physicalport)

Remove all bindings for a physical port

Parameters:
  • physicalswitch – physical switch name, should be the name in PhysicalSwitch table of OVSDB vtep database
  • physicalport – physical port name, should be the name in OVSDB vtep database
updatelogicalswitch(physicalswitch, physicalport, vlanid, logicalnetwork, vni, logicalports)

Bind VLAN on physicalport to specified logical network, and update logical port vxlan info

Parameters:
  • physicalswitch – physical switch name, should be the name in PhysicalSwitch table of OVSDB vtep database
  • physicalport – physical port name, should be the name in OVSDB vtep database
  • vlanid – the vlan tag used for this logicalswitch
  • logicalnetwork – the logical network id, will also be the logical switch id
  • vni – the VXLAN VNI of the logical network
  • logicalports – a list of logical port IDs. The VXLAN info of these ports will be updated.
class vlcp.service.sdn.vtepcontroller.VtepPhysicalSwitchStateChanged(*args, **kwargs)
class vlcp.service.sdn.vtepcontroller._DataUpdateEvent(*args, **kwargs)