コード例 #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)