def prepare_all_flow_specifications(self):
flow_specs = []
flow_match = Match(is_wildcard=True)
#flow_match["ethernet_type"] = 0x0800
for src_host_id, dst_host_id in permutations(self.ng.host_ids, 2):
if src_host_id == dst_host_id:
continue
fs = FlowSpecification(src_host_id, dst_host_id, flow_match)
fs.ng_src_host = self.ng.get_node_object(src_host_id)
fs.ng_dst_host = self.ng.get_node_object(dst_host_id)
fs.mn_src_host = self.mininet_obj.get(src_host_id)
fs.mn_dst_host = self.mininet_obj.get(dst_host_id)
flow_specs.append(fs)
return flow_specs
network_configuration.py 文件源码
python
阅读 29
收藏 0
点赞 0
评论 0
评论列表
文章目录