Open Kilda Java Documentation
topologylistener.tests.test_isl Namespace Reference

Classes

class  TestIsl
 

Functions

def inject_db_link_props (tx, source, dest, payload)
 
def make_switch_add (dpid)
 
def make_switch_remove (dpid)
 
def make_port_down (endpoint)
 
def make_isl_pair (source, dest)
 
def make_isl_failed (source)
 
def make_isl_moved (isl)
 

Variables

string ISL_STATUS_ACTIVE = 'active'
 
string ISL_STATUS_INACTIVE = 'inactive'
 
string ISL_STATUS_MOVED = 'moved'
 
dictionary ISL_STATUS_PROPS_DOWN
 
dictionary ISL_STATUS_PROPS_HALF_UP
 
dictionary ISL_STATUS_PROPS_UP = {'actual': ISL_STATUS_ACTIVE, 'status': ISL_STATUS_ACTIVE}
 
dictionary ISL_STATUS_PROPS_MOVED
 
 neo4j_connect = share.env.neo4j_connect
 

Function Documentation

◆ inject_db_link_props()

def topologylistener.tests.test_isl.inject_db_link_props (   tx,
  source,
  dest,
  payload 
)

Definition at line 39 of file test_isl.py.

◆ make_isl_failed()

def topologylistener.tests.test_isl.make_isl_failed (   source)

Definition at line 103 of file test_isl.py.

◆ make_isl_moved()

def topologylistener.tests.test_isl.make_isl_moved (   isl)

Definition at line 117 of file test_isl.py.

◆ make_isl_pair()

def topologylistener.tests.test_isl.make_isl_pair (   source,
  dest 
)

Definition at line 97 of file test_isl.py.

◆ make_port_down()

def topologylistener.tests.test_isl.make_port_down (   endpoint)

Definition at line 86 of file test_isl.py.

◆ make_switch_add()

def topologylistener.tests.test_isl.make_switch_add (   dpid)

Definition at line 60 of file test_isl.py.

◆ make_switch_remove()

def topologylistener.tests.test_isl.make_switch_remove (   dpid)

Definition at line 73 of file test_isl.py.

Variable Documentation

◆ ISL_STATUS_ACTIVE

string topologylistener.tests.test_isl.ISL_STATUS_ACTIVE = 'active'

Definition at line 24 of file test_isl.py.

◆ ISL_STATUS_INACTIVE

string topologylistener.tests.test_isl.ISL_STATUS_INACTIVE = 'inactive'

Definition at line 25 of file test_isl.py.

◆ ISL_STATUS_MOVED

string topologylistener.tests.test_isl.ISL_STATUS_MOVED = 'moved'

Definition at line 26 of file test_isl.py.

◆ ISL_STATUS_PROPS_DOWN

dictionary topologylistener.tests.test_isl.ISL_STATUS_PROPS_DOWN
Initial value:
1 = {
2  'actual': ISL_STATUS_INACTIVE, 'status': ISL_STATUS_INACTIVE}

Definition at line 28 of file test_isl.py.

◆ ISL_STATUS_PROPS_HALF_UP

dictionary topologylistener.tests.test_isl.ISL_STATUS_PROPS_HALF_UP
Initial value:
1 = {
2  'actual': ISL_STATUS_ACTIVE, 'status': ISL_STATUS_INACTIVE}

Definition at line 30 of file test_isl.py.

◆ ISL_STATUS_PROPS_MOVED

dictionary topologylistener.tests.test_isl.ISL_STATUS_PROPS_MOVED
Initial value:
1 = {
2  'actual': ISL_STATUS_MOVED, 'status': ISL_STATUS_MOVED}

Definition at line 33 of file test_isl.py.

◆ ISL_STATUS_PROPS_UP

dictionary topologylistener.tests.test_isl.ISL_STATUS_PROPS_UP = {'actual': ISL_STATUS_ACTIVE, 'status': ISL_STATUS_ACTIVE}

Definition at line 32 of file test_isl.py.

◆ neo4j_connect

topologylistener.tests.test_isl.neo4j_connect = share.env.neo4j_connect

Definition at line 36 of file test_isl.py.