remove inappropriate assertions that popped when routing disabled
authorCraig Dowell <craigdo@ee.washington.edu>
Fri, 13 Jul 2007 14:35:24 -0700
changeset 1092 a5d807363dec
parent 1089 5ad63c15b7e4
child 1093 752cc0969180
remove inappropriate assertions that popped when routing disabled
src/routing/static-route-manager.cc
--- a/src/routing/static-route-manager.cc	Fri Jul 13 14:05:12 2007 -0700
+++ b/src/routing/static-route-manager.cc	Fri Jul 13 14:35:24 2007 -0700
@@ -145,7 +145,11 @@
 
       Ptr<StaticRouter> rtr = 
         node->QueryInterface<StaticRouter> (StaticRouter::iid);
-      NS_ASSERT_MSG(rtr, "QI for <StaticRouter> interface failed");
+      
+      if (!rtr)
+        {
+          continue;
+        }
 
       // You must call DiscoverLSAs () before trying to use any 
       // routing info or to update LSAs.  Subsequently you may use 
@@ -208,7 +212,7 @@
       
       Ptr<StaticRouter> rtr = 
         node->QueryInterface<StaticRouter> (StaticRouter::iid);
-      NS_ASSERT_MSG(rtr, "QI for <StaticRouter> interface failed");
+
       if (rtr && rtr->GetNumLSAs () )
         {
           SPFCalculate(rtr->GetRouterId ());