Open Kilda Java Documentation
app.topology Namespace Reference

Classes

class  Edge
 
class  Link
 
class  Nodes
 

Functions

def api_v1_network ()
 
def api_v1_topology_nodes ()
 
def api_v1_topo_clear ()
 
def topology_network ()
 
def api_v1_topology_flows ()
 
def api_v1_topology_get_flow (flow_id)
 
def format_isl (link)
 
def get_isl_state (link)
 
def format_switch (switch)
 
def format_flow (raw_flow)
 
def api_v1_topology_links ()
 
def api_v1_topology_switches ()
 
def api_v1_topology_link_bandwidth (src_switch, src_port)
 
def api_v1_routes_between_nodes (src_switch, dst_switch)
 
def build_path_info (path)
 
def build_path_nodes (link, seq_id)
 
def is_forward_cookie (cookie)
 
def format_db_datetime (value)
 

Variables

 logger = logging.getLogger(__name__)
 
 config = ConfigParser.RawConfigParser()
 
 neo4j_connect = neo4j_tools.connect(config)
 
string DATETIME_FORMAT = '%Y-%m-%dT%H:%M:%S.%fZ'
 
 UNIX_EPOCH = datetime.datetime(1970, 1, 1, 0, 0, 0, 0, pytz.utc)
 

Function Documentation

◆ api_v1_network()

def app.topology.api_v1_network ( )
2017.03.08 (carmine) - this is now identical to api_v1_topology.
:return: the switches and links

Definition at line 43 of file topology.py.

◆ api_v1_routes_between_nodes()

def app.topology.api_v1_routes_between_nodes (   src_switch,
  dst_switch 
)

Definition at line 290 of file topology.py.

◆ api_v1_topo_clear()

def app.topology.api_v1_topo_clear ( )
Clear the entire topology
:returns the result of api_v1_network() after the delete

Definition at line 115 of file topology.py.

◆ api_v1_topology_flows()

def app.topology.api_v1_topology_flows ( )

Definition at line 133 of file topology.py.

◆ api_v1_topology_get_flow()

def app.topology.api_v1_topology_get_flow (   flow_id)

Definition at line 145 of file topology.py.

◆ api_v1_topology_link_bandwidth()

def app.topology.api_v1_topology_link_bandwidth (   src_switch,
  src_port 
)

Definition at line 279 of file topology.py.

◆ api_v1_topology_links()

def app.topology.api_v1_topology_links ( )
:return: all isl relationships in the database

Definition at line 235 of file topology.py.

◆ api_v1_topology_nodes()

def app.topology.api_v1_topology_nodes ( )

Definition at line 83 of file topology.py.

◆ api_v1_topology_switches()

def app.topology.api_v1_topology_switches ( )
:return: all switches in the database

Definition at line 257 of file topology.py.

◆ build_path_info()

def app.topology.build_path_info (   path)

Definition at line 315 of file topology.py.

◆ build_path_nodes()

def app.topology.build_path_nodes (   link,
  seq_id 
)

Definition at line 322 of file topology.py.

◆ format_db_datetime()

def app.topology.format_db_datetime (   value)

Definition at line 348 of file topology.py.

◆ format_flow()

def app.topology.format_flow (   raw_flow)

Definition at line 222 of file topology.py.

◆ format_isl()

def app.topology.format_isl (   link)
:param link: A valid Link returned from the db
:return: A dictionary in the form of org.openkilda.messaging.info.event.IslInfoData

Definition at line 166 of file topology.py.

◆ format_switch()

def app.topology.format_switch (   switch)
:param switch: A valid Switch returned from the db
:return: A dictionary in the form of org.openkilda.messaging.info.event.SwitchInfoData

Definition at line 207 of file topology.py.

◆ get_isl_state()

def app.topology.get_isl_state (   link)

Definition at line 198 of file topology.py.

◆ is_forward_cookie()

def app.topology.is_forward_cookie (   cookie)

Definition at line 344 of file topology.py.

◆ topology_network()

def app.topology.topology_network ( )

Definition at line 127 of file topology.py.

Variable Documentation

◆ config

app.topology.config = ConfigParser.RawConfigParser()

Definition at line 32 of file topology.py.

◆ DATETIME_FORMAT

string app.topology.DATETIME_FORMAT = '%Y-%m-%dT%H:%M:%S.%fZ'

Definition at line 37 of file topology.py.

◆ logger

app.topology.logger = logging.getLogger(__name__)

Definition at line 30 of file topology.py.

◆ neo4j_connect

app.topology.neo4j_connect = neo4j_tools.connect(config)

Definition at line 35 of file topology.py.

◆ UNIX_EPOCH

app.topology.UNIX_EPOCH = datetime.datetime(1970, 1, 1, 0, 0, 0, 0, pytz.utc)

Definition at line 38 of file topology.py.