Index Field Ryu Rest API 語法
1 OXM_OF_IN_PORT ~# curl -X POST -d '{"dpid":"0000000000000001", "priority":"32766","match":{"in_port":2}, "actions":[{"type":"OUTPUT","port":1}]}' http://127.0.0.1:8080/stats/flowentry/add
2 OXM_OF_IN_PHY_PORT N/A
3 OXM_OF_METADATA

curl -X POST -d '{"dpid":"0000000000000001", "priority":"32766","match":{"metadata":"1234567890"}, "actions":[{"type":"OUTPUT","port":1}]}' http://127.0.0.1:8080/stats/flowentry/add

4 OXM_OF_ETH_DST

curl -X POST -d '{"dpid":"0000000000000001", "priority":"32766","match":{"eth_dst":"00:11:22:33:44:55"}, "actions":[{"type":"OUTPUT","port":1}]}' http://127.0.0.1:8080/stats/flowentry/add

5 OXM_OF_ETH_SRC

curl -X POST -d '{"dpid":"0000000000000001", "priority":"32766","match":{"eth_src":"00:11:22:33:44:55"}, "actions":[{"type":"OUTPUT","port":1}]}' http://127.0.0.1:8080/stats/flowentry/add

6 OXM_OF_ETH_TYPE

curl -X POST -d '{"dpid":"0000000000000001", "priority":"32766","match":{"eth_type":0x86dd}, "actions":[{"type":"OUTPUT","port":1}]}' http://127.0.0.1:8080/stats/flowentry/add

7 OXM_OF_VLAN_VID

curl -X POST -d '{"dpid":"0000000000000001", "priority":"32766","match":{"vlan_vid":1024}, "actions":[{"type":"OUTPUT","port":1}]}' http://127.0.0.1:8080/stats/flowentry/add

8 OXM_OF_VLAN_PCP

curl -X POST -d '{"dpid":"0000000000000001", "priority":"32766","match":{"vlan_vid":1024,"vlan_pcp":7}, "actions":[{"type":"OUTPUT","port":1}]}' http://127.0.0.1:8080/stats/flowentry/add

9 OXM_OF_IP_DSCP

 curl -X POST -d '{"dpid":"0000000000000001", "priority":"32766","match":{"eth_type":0x86dd,"ip_dscp":10}, "actions":[{"type":"OUTPUT","port":1}]}' http://127.0.0.1:8080/stats/flowentry/add

10 OXM_OF_IP_ECN

curl -X POST -d '{"dpid":"0000000000000001", "priority":"32766","match":{"eth_type":0x86dd,"ip_ecn":1}, "actions":[{"type":"OUTPUT","port":1}]}' http://127.0.0.1:8080/stats/flowentry/add

11 OXM_OF_IP_RPOTO

curl -X POST -d '{"dpid":"0000000000000001", "priority":"32766","match":{"eth_type":2048,"ip_proto":6}, "actions":[{"type":"OUTPUT","port":1}]}' http://127.0.0.1:8080/stats/flowentry/add

12 OXM_OF_IPV4_SRC

 curl -X POST -d '{"dpid":"0000000000000001", "priority":"32766","match":{"eth_type":0x0800,"ipv4_src":"192.168.1.2"}, "actions":[{"type":"OUTPUT","port":1}]}' http://127.0.0.1:8080/stats/flowentry/add

13 OXM_OF_IPV4_DST

 curl -X POST -d '{"dpid":"0000000000000001", "priority":"32766","match":{"eth_type":0x0800,"ipv4_dst":"192.168.1.2"}, "actions":[{"type":"OUTPUT","port":1}]}' http://127.0.0.1:8080/stats/flowentry/add

14 OXM_OF_TCP_SRC

curl -X POST -d '{"dpid":"0000000000000001", "priority":"32766","match":{"eth_type":2048,"ip_proto":6,"tcp_src":21}, "actions":[{"type":"OUTPUT","port":1}]}' http://127.0.0.1:8080/stats/flowentry/add

15  OXM_OF_TCP_DST

curl -X POST -d '{"dpid":"0000000000000001", "priority":"32766","match":{"eth_type":2048,"ip_proto":6,"tcp_dst":21}, "actions":[{"type":"OUTPUT","port":1}]}' http://127.0.0.1:8080/stats/flowentry/add

16 OXM_OF_UDP_SRC

curl -X POST -d '{"dpid":"0000000000000001", "priority":"32766","match":{"eth_type":2048,"ip_proto":17,"udp_src":53}, "actions":[{"type":"OUTPUT","port":1}]}' http://127.0.0.1:8080/stats/flowentry/add

17 OXM_OF_UDP_DST curl -X POST -d '{"dpid":"0000000000000001", "priority":"32766","match":{"eth_type":2048,"ip_proto":17,"udp_dst":53}, "actions":[{"type":"OUTPUT","port":1}]}' http://127.0.0.1:8080/stats/flowentry/add
18 OXM_OF_SCTP_SRC curl -X POST -d '{"dpid":"0000000000000001", "priority":"32766","match":{"eth_type":2048,"ip_proto":132,"sctp_src":21}, "actions":[{"type":"OUTPUT","port":1}]}' http://127.0.0.1:8080/stats/flowentry/add
19 OXM_OF_SCTP_DST curl -X POST -d '{"dpid":"0000000000000001", "priority":"32766","match":{"eth_type":2048,"ip_proto":132,"sctp_dst":21}, "actions":[{"type":"OUTPUT","port":1}]}' http://127.0.0.1:8080/stats/flowentry/add

qmaw 發表在 痞客邦 留言(0) 人氣()