예제 #1
0
def show(node_id):
    odl = _get_odl_client()
    node = odl.nodes.get(node_id)
    columns = ['id', 'ip_address', 'connector_count', 'table_count',
               'hardware', 'software', 'switch_features', 'description',
               'meter_features', 'manufacturer', 'serial_number']
    cmdutils.print_desc(columns, node, formatter=_node_formatter)
예제 #2
0
def show(node_id, table_id):
    odl = _get_odl_client()
    node = odl.nodes.get(node_id)
    t = [t for t in node.tables if t.id == table_id][0]
    columns = ['id', 'flow_count', 'flow_hash_id_map',
               'aggregate_flow_statistics', 'flow_table_statistics']
    cmdutils.print_desc(columns, t, formatter=_flow_formatter)
예제 #3
0
def show(node_id, port_number):
    odl = _get_odl_client()
    connectors = odl.nodes.get(node_id).connectors
    connector = [c for c in connectors if c.port_number == port_number][0]
    columns = [
        "id", "port_number", "name", "current_speed",
        "flow_capable_node_connector_statistics", "advertised_features",
        "configuration", "hardware_address", "maximum_speed", "state",
        "supported", "current_feature", "peer_features"]
    cmdutils.print_desc(columns, connector)