示例#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)