![]() |
Open Kilda Java Documentation
|
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) | |
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.
def app.topology.api_v1_routes_between_nodes | ( | src_switch, | |
dst_switch | |||
) |
Definition at line 290 of file topology.py.
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.
def app.topology.api_v1_topology_flows | ( | ) |
Definition at line 133 of file topology.py.
def app.topology.api_v1_topology_get_flow | ( | flow_id | ) |
Definition at line 145 of file topology.py.
def app.topology.api_v1_topology_link_bandwidth | ( | src_switch, | |
src_port | |||
) |
Definition at line 279 of file topology.py.
def app.topology.api_v1_topology_links | ( | ) |
:return: all isl relationships in the database
Definition at line 235 of file topology.py.
def app.topology.api_v1_topology_nodes | ( | ) |
Definition at line 83 of file topology.py.
def app.topology.api_v1_topology_switches | ( | ) |
:return: all switches in the database
Definition at line 257 of file topology.py.
def app.topology.build_path_info | ( | path | ) |
Definition at line 315 of file topology.py.
def app.topology.build_path_nodes | ( | link, | |
seq_id | |||
) |
Definition at line 322 of file topology.py.
def app.topology.format_db_datetime | ( | value | ) |
Definition at line 348 of file topology.py.
def app.topology.format_flow | ( | raw_flow | ) |
Definition at line 222 of file topology.py.
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.
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.
def app.topology.get_isl_state | ( | link | ) |
Definition at line 198 of file topology.py.
def app.topology.is_forward_cookie | ( | cookie | ) |
Definition at line 344 of file topology.py.
def app.topology.topology_network | ( | ) |
Definition at line 127 of file topology.py.
app.topology.config = ConfigParser.RawConfigParser() |
Definition at line 32 of file topology.py.
string app.topology.DATETIME_FORMAT = '%Y-%m-%dT%H:%M:%S.%fZ' |
Definition at line 37 of file topology.py.
app.topology.logger = logging.getLogger(__name__) |
Definition at line 30 of file topology.py.
app.topology.neo4j_connect = neo4j_tools.connect(config) |
Definition at line 35 of file topology.py.
app.topology.UNIX_EPOCH = datetime.datetime(1970, 1, 1, 0, 0, 0, 0, pytz.utc) |
Definition at line 38 of file topology.py.