Exemple #1
0
        public virtual void TestCachingRelaysMultiSwitchQueries()
        {
            StaticMapping staticMapping = NewInstance("top");

            AssertMultiSwitch(staticMapping);
            CachedDNSToSwitchMapping cachedMap = new CachedDNSToSwitchMapping(staticMapping);

            Log.Info("Mapping: " + cachedMap + "\n" + cachedMap.DumpTopology());
            AssertMultiSwitch(cachedMap);
        }
Exemple #2
0
        public virtual void TestCachingRelaysSingleSwitchQueries()
        {
            //create a single switch map
            StaticMapping staticMapping = NewInstance(null);

            AssertSingleSwitch(staticMapping);
            CachedDNSToSwitchMapping cachedMap = new CachedDNSToSwitchMapping(staticMapping);

            Log.Info("Mapping: " + cachedMap + "\n" + cachedMap.DumpTopology());
            AssertSingleSwitch(cachedMap);
        }