예제 #1
0
파일: vpn.py 프로젝트: leftyLin/ryu
    def _new_best_path(self, best_path):
        NonVrfPathProcessingMixin._new_best_path(self, best_path)
        self._core_service._signal_bus.best_path_changed(best_path, False)

        # Extranet feature requires that we import new best path into VRFs.
        tm = self._core_service.table_manager
        tm.import_single_vpn_path_to_all_vrfs(self._best_path, self._best_path.get_rts())
예제 #2
0
    def _new_best_path(self, best_path):
        NonVrfPathProcessingMixin._new_best_path(self, best_path)

        # Extranet feature requires that we import new best path into VRFs.
        tm = self._core_service.table_manager
        tm.import_single_vpn_path_to_all_vrfs(self._best_path,
                                              self._best_path.get_rts())
예제 #3
0
파일: vpn.py 프로젝트: leftyLin/ryu
    def _best_path_lost(self):
        old_best_path = self._best_path
        NonVrfPathProcessingMixin._best_path_lost(self)
        self._core_service._signal_bus.best_path_changed(old_best_path, True)

        # Best-path might have been imported into VRF tables, we have to
        # withdraw from them, if the source is a peer.
        if old_best_path:
            withdraw_clone = old_best_path.clone(for_withdrawal=True)
            tm = self._core_service.table_manager
            tm.import_single_vpn_path_to_all_vrfs(withdraw_clone, path_rts=old_best_path.get_rts())
예제 #4
0
    def _best_path_lost(self):
        old_best_path = self._best_path
        NonVrfPathProcessingMixin._best_path_lost(self)

        # Best-path might have been imported into VRF tables, we have to
        # withdraw from them, if the source is a peer.
        if old_best_path:
            withdraw_clone = old_best_path.clone(for_withdrawal=True)
            tm = self._core_service.table_manager
            tm.import_single_vpn_path_to_all_vrfs(
                withdraw_clone, path_rts=old_best_path.get_rts())
예제 #5
0
 def _new_best_path(self, best_path):
     NonVrfPathProcessingMixin._new_best_path(self, best_path)
     self._core_service._signal_bus.best_path_changed(best_path, False)
예제 #6
0
 def _best_path_lost(self):
     old_best_path = self._best_path
     NonVrfPathProcessingMixin._best_path_lost(self)
     self._core_service._signal_bus.best_path_changed(old_best_path, True)
예제 #7
0
파일: ipv4.py 프로젝트: MohdAhmad/ryu
 def _new_best_path(self, best_path):
     NonVrfPathProcessingMixin._new_best_path(self, best_path)
     self._core_service._signal_bus.best_path_changed(best_path)
예제 #8
0
파일: ipv4.py 프로젝트: MohdAhmad/ryu
 def _best_path_lost(self):
     NonVrfPathProcessingMixin._best_path_lost(self)
     self._core_service._signal_bus.best_path_changed(self)
예제 #9
0
 def _best_path_lost(self):
     NonVrfPathProcessingMixin._best_path_lost(self)
예제 #10
0
 def _new_best_path(self, new_best_path):
     NonVrfPathProcessingMixin._new_best_path(self, new_best_path)
예제 #11
0
파일: rtc.py 프로젝트: alextwl/ryu
 def _best_path_lost(self):
     NonVrfPathProcessingMixin._best_path_lost(self)
예제 #12
0
파일: rtc.py 프로젝트: alextwl/ryu
 def _new_best_path(self, new_best_path):
     NonVrfPathProcessingMixin._new_best_path(self, new_best_path)