Ejemplo n.º 1
0
    def __init__(self, cfg):
        LOG.info(_LI('Initializing Ryu driver for BGP Speaker functionality.'))
        self._read_config(cfg)

        # Note: Even though Ryu can only support one BGP speaker as of now,
        # we have tried making the framework generic for the future purposes.
        self.cache = utils.BgpMultiSpeakerCache()
 def setUp(self):
     super(TestBgpMultiSpeakerCache, self).setUp()
     self.expected_cache = {FAKE_LOCAL_AS: FAKE_RYU_SPEAKER}
     self.bs_cache = bgp_driver_utils.BgpMultiSpeakerCache()