예제 #1
0
 def main(self):
     try:
         if self._connection.protocol.disablenxext:
             return
         self.subroutine(self._update_handler(), True, '_update_handler_routine')
         for m in FlowUpdater.main(self):
             yield m
     finally:
         if hasattr(self, '_update_handler_routine'):
             self._update_handler_routine.close()
예제 #2
0
 def main(self):
     try:
         if self._connection.protocol.disablenxext:
             return
         self.subroutine(self._update_handler(), True, '_update_handler_routine')
         for m in FlowUpdater.main(self):
             yield m
     finally:
         if hasattr(self, '_update_handler_routine'):
             self._update_handler_routine.close()
예제 #3
0
    def main(self):
        try:
            self.subroutine(self._update_handler(),True,"update_handler_routine")

            # use controller to reply icmp ping ,so start routine handler packet in
            if not self.parent.prepush:
                self.subroutine(self._icmp_packetin_handler(),True,"icmp_packetin_handler_routine")

            for m in FlowUpdater.main(self):
                yield m
        finally:
            if hasattr(self,"update_handler_routine"):
                self.update_handler_routine.close()

            if hasattr(self,"icmp_packetin_handler_routine"):
                self.icmp_packetin_handler_routine.close()
예제 #4
0
    def main(self):
        try:
            self.subroutine(self._update_handler(),True,"update_handler_routine")

            # use controller to reply icmp ping ,so start routine handler packet in
            if not self.parent.prepush:
                self.subroutine(self._icmp_packetin_handler(),True,"icmp_packetin_handler_routine")

            for m in FlowUpdater.main(self):
                yield m
        finally:
            if hasattr(self,"update_handler_routine"):
                self.update_handler_routine.close()

            if hasattr(self,"icmp_packetin_handler_routine"):
                self.icmp_packetin_handler_routine.close()