0

1) 2 つのフロー ルールを複数のスイッチにインストールしようとしています。

3) 最初のルールがスイッチにインストールされると、接続がリセットされ、2 番目のルールが同じスイッチにインストールされません。

4) コード スニペットは次のとおりです。

for x in Rules.values():

log.debug("Source Mac is %s",x['mac_0'])
log.debug("Destination Mac is %s",x['mac_1'])
match = of.ofp_match(dl_type = 0x800, nw_proto = pkt.ipv4.ICMP_PROTOCOL, dl_src = x['mac_0'], dl_dst = x['mac_1'])
msg = of.ofp_flow_mod()
msg.priority = 20
msg.match = match
self.connection.send(msg)
log.debug("Firewall rules installed on %s", dpidToStr(event.dpid))

5) エラーメッセージは次のとおりです。

DEBUG:misc.Custom_firewall_2:ソース Mac は 00:00:00:00:00:01 です

DEBUG:misc.Custom_firewall_2:宛先 Mac は 00:00:00:00:00:02 です

DEBUG:misc.Custom_firewall_2:1 #ignore これは参考用です

DEBUG:misc.Custom_firewall_2:2 #ignore これは参考用です

DEBUG:misc.Custom_firewall_2:ファイアウォール ルールが 00-00-00-00-00-09 にインストールされました-> 最初のルールがインストールされました

DEBUG:misc.Custom_firewall_2:ソース Mac は 00:00:00:00:00:04 です

DEBUG:misc.Custom_firewall_2:宛先 Mac は 00:00:00:00:00:03 です

DEBUG:misc.Custom_firewall_2:1 #ignore これは参考用です

DEBUG:misc.Custom_firewall_2:2 #ignore これは参考用です

DEBUG:openflow.of_01:[00-00-00-00-00-09 33] ソケット エラー: ピアによる接続のリセット-> 2 番目のルールのインストールに失敗

INFO:openflow.of_01:[00-00-00-00-00-09 33] 切断されました

DEBUG:misc.Custom_firewall_2:00-00-00-00-00-09 にインストールされたファイアウォール ルール

ERROR:openflow.of_01:[00-00-00-00-00-0f 37] オープンフロー

エラー: [00-00-00-00-00-0f 37]

エラー: ヘッダー: [00-00-00-00-00-0f 37]

エラー: バージョン: 1 [00-00-00-00-00-0f 37]

エラー: タイプ: 1 (OFPT_ERROR)

...

...

...

すぐ...

5) POX コントローラ 0.2.0 (carp) を使用しています。

誰かが私に解決策を提案できますか?

4

0 に答える 0