0
単一のカールコールで複数のフローをテーブルに追加したいとします。出来ますか ??複数のフローをopendaylightのテーブルに追加する
PFBテーブル0にプッシュされるフロー。現在、2つのカールコールを使用してフロー1がプッシュされ、フロー2が1つずつプッシュされています。
これらの2つのフローをODLの単一のXMLにマージできますか? ONOSも可能です。
1)フロー1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<input xmlns="urn:opendaylight:flow:service">
<barrier>false</barrier>
<node xmlns:inv="urn:opendaylight:inventory">/inv:nodes/inv:node[inv:id="openflow:7"]</node>
<match>
<ethernet-match>
<ethernet-type>
<type>0x800</type>
</ethernet-type>
</ethernet-match>
</match>
<instructions>
<instruction>
<order>0</order>
<go-to-table>
<table_id>1</table_id>
</go-to-table>
</instruction>
</instructions>
<priority>0</priority>
<strict>false</strict>
<table_id>0</table_id>
</input>
2)フロー2
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<input xmlns="urn:opendaylight:flow:service">
<barrier>false</barrier>
<node xmlns:inv="urn:opendaylight:inventory">/inv:nodes/inv:node[inv:id="openflow:7"]</node>
<match>
<ethernet-match>
<ethernet-type>
<type>0x86dd</type>
</ethernet-type>
</ethernet-match>
</match>
<instructions>
<instruction>
<order>0</order>
<go-to-table>
<table_id>2</table_id>
</go-to-table>
</instruction>
</instructions>
<priority>0</priority>
<strict>false</strict>
<table_id>0</table_id>
</input>
だから、テーブルに複数のフローを追加する最もよい方法は何ですか? – uday
@uday、それぞれのフローを別々に追加します。ただし、xmlから判断すると、同じテーブルにフローを追加しようとしていないことに注意してください。 – Marievi
私はフローを同じテーブルに追加しています(テーブルId 0)。一致(ethタイプに基づく)と命令が異なります。 1)一致:IPV4パケット、処置:表1に進みます。2)一致:IPV6パケット、処置表2に進みます。したがって、フローを同じ表に追加しようとしています。 – uday