0
Je souhaite ajouter plusieurs flux à une table avec un seul appel de boucle. C'est possible ??Ajouter plusieurs flux à une table dans opendaylight
PFB le Flows qui est censé être poussé à la table 0. Actuellement, Flow1 est poussé et Flow2 est poussé l'un après l'autre en utilisant 2 appel curl.
Ces 2 flux peuvent-ils être fusionnés en un seul xml en langage ODL? C'est possible est ONOS.
1) Débit 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) Débit 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>
Alors, quel est le meilleur moyen d'ajouter plusieurs flux pour une table ?? – uday
@ayay, ajoutez chaque flux séparément, avec une demande séparée. Notez cependant que vous n'essayez pas d'ajouter les flux à la même table, à en juger par vos xml. – Marievi
J'ajoute Flow à la même table (Id de table 0). Le match (basé sur le type eth) et l'instruction est différente. 1) Correspondance: paquet IPV4, Action: Aller au tableau 1 2) Correspondance: paquet IPV6, Action Aller à la table 2. Donc j'essaie d'ajouter des flux à la même table. – uday