ODL:OpenDayLight控制器的北向API接口整理

ODL:OpenDayLight控制器的北向API接口整理


1.获取当前所有拓扑结构

URL格式:http://IP:端口/restconf/operational/operational/network-topology:network-topology

URL示例:http://192.168.21.130:8181/restconf/operational/network-topology:network-topology

2.获取当前指定拓扑结构

URL格式:http://IP:端口/restconf/operational/operational/network-topology:network-topology/topology/TopologyID

URL示例:http://192.168.21.130:8181/restconf/operational/network-topology:network-topology/topology/flow:1

3.获取当前所有拓扑结构中的所有交换机节点的信息

URL格式:http://IP:端口/restconf/operational/opendaylight-inventory:nodes

URL示例:http://192.168.21.130:8181/restconf/operational/opendaylight-inventory:nodes

4.获取当前指定拓扑结构中的指定交换机节点的信息

URL格式:http://IP:端口/restconf/operational/opendaylight-inventory:nodes/node/交换机ID

URL示例:http://192.168.21.130:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:52242899592

5.获取当前指定拓扑结构中的指定交换机节点中指定端口连接的信息

URL格式:http://IP:端口/restconf/operational/opendaylight-inventory:nodes/node/交换机ID/opendaylight-inventory:node-connector/连接ID

URL示例:http://192.168.21.128:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:1/opendaylight-inventory:node-connector/openflow:1:2

6.获取当前指定拓扑结构中的指定交换机节点中单个FlowTable的信息

URL格式:http://IP:端口/restconf/operational/opendaylight-inventory:nodes/node/交换机ID//table/FlowTable的ID

URL示例:http://192.168.21.130:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:52242899592/table/0

7.获取当前指定拓扑结构中的指定交换机节点中单个FlowTable中指定Flow的信息

URL格式:http://IP:端口/restconf/operational/opendaylight-inventory:nodes/node/交换机ID//table/FlowTable的ID/flow/FlowID

URL示例:http://192.168.21.130:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:52242899592/table/0/flow/L2switch-0

8.待完善

©️2020 CSDN 皮肤主题: Age of Ai 设计师:meimeiellie 返回首页