5.6.5.13. vlcp.service.sdn.ovsdbportmanager

Note

This document is generated from the source file.

View Source on GitHub

Created on 2016/2/26

author:think
class vlcp.service.sdn.ovsdbportmanager.OVSDBConnectionPortsSynchronized(*args, **kwargs)
class vlcp.service.sdn.ovsdbportmanager.OVSDBPortManager(server)

Manage Ports from OVSDB Protocol

__init__(server)

Constructor

getallports(vhost=None)

Return all (datapathid, port, vhost) tuples, optionally filterd by vhost

getportbyid(id, vhost='')

Return port with the specified id. The return value is a pair: (datapath_id, port)

getportbyname(datapathid, name, vhost='')

Return port with specified name

getportbyno(datapathid, portno, vhost='')

Return port with specified portno

getports(datapathid, vhost='')

Return all ports of a specifed datapath

resync(datapathid, vhost='')

Resync with current ports

waitportbyid(id, timeout=30, vhost='')

Wait for port with the specified id. The return value is a pair (datapath_id, port)

waitportbyname(datapathid, name, timeout=30, vhost='')

Wait for port with specified name

waitportbyno(datapathid, portno, timeout=30, vhost='')

Wait for port with specified portno

exception vlcp.service.sdn.ovsdbportmanager.OVSDBPortNotAppearException
class vlcp.service.sdn.ovsdbportmanager.OVSDBPortUpNotification(*args, **kwargs)