注意1:必须先下meter然后才能下flow entry! 注意2:在写request的时候要记得填写authorization,默认用户名和密码都是admin!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> <flow xmlns="urn:opendaylight:flow:inventory"> <priority>1</priority> <flow-name>Foo</flow-name> <match> <ethernet-match> <ethernet-type> <type>2048</type> </ethernet-type> </ethernet-match> <in-port>48</in-port> </match> <id>2</id> <table_id>0</table_id> <instructions> <instruction> <order>0</order> <apply-actions> <action> <order>0</order> <output-action> <output-node-connector>68</output-node-connector> </output-action> </action> </apply-actions> </instruction> <instruction> <order>1</order> <meter> <meter-id>5</meter-id> </meter> </instruction> </instructions> </flow> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> <flow xmlns="urn:opendaylight:flow:inventory"> <priority>1</priority> <flow-name>Foo</flow-name> <match> <ethernet-match> <ethernet-type> <type>2048</type> </ethernet-type> </ethernet-match> <in-port>68</in-port> </match> <id>2</id> <table_id>0</table_id> <instructions> <instruction> <order>0</order> <apply-actions> <action> <order>0</order> <output-action> <output-node-connector>48</output-node-connector> </output-action> </action> </apply-actions> </instruction> </instructions> </flow> |
作者简介:
林潇,同济大学SNlab(先进网络与系统联合中心)
QQ:378633397,Email: linxiao9292@outlook.com
陈明明,同济大学SNlab(先进网络与系统联合中心)
QQ:544396901,Email:544396901@qq.com
欢迎光临 51学通信论坛2017新版 (http://bbs.51xuetongxin.com/) | Powered by Discuz! X3 |