Exemplo n.º 1
0
    def run(self):
        for sw in self.environment.switches.values():
            self.prepare_snake_flows(sw.dpid, self.current_packet_size())

            logging.info('Switch under full load adding push/pop vxlan rules')
            self.add_flow(
                flows.flow_vxlan_pop(sw.dpid, sw.snake_end_port, OFPP_IN_PORT))
            self.add_flow(
                flows.flow_vxlan_push(sw.dpid,
                                      sw.snake_start_port_,
                                      OFPP_IN_PORT,
                                      flags=0))
Exemplo n.º 2
0
    def run(self):
        for sw in self.environment.switches.values():
            self.prepare_snake_flows(sw.dpid, self.current_packet_size())
            timestamp = int(datetime.now().timestamp())
            self.time_metrics[-1].timestamps[timestamp] = "start"

            logging.info('Switch under full load adding push/pop vxlan rules')
            self.add_flow(
                flows.flow_vxlan_pop(sw.dpid, sw.snake_end_port, OFPP_IN_PORT))
            self.add_flow(
                flows.flow_vxlan_push(sw.dpid,
                                      sw.snake_start_port_,
                                      OFPP_IN_PORT,
                                      flags=0))