merge
authorCraig Dowell <craigdo@ee.washington.edu>
Fri, 13 Jul 2007 14:37:00 -0700
changeset 1093 752cc0969180
parent 1092 a5d807363dec (diff)
parent 1091 bda11910b22c (current diff)
child 1094 6ca9a72ff445
merge
--- a/src/routing/static-route-manager.cc	Fri Jul 13 14:22:40 2007 -0700
+++ b/src/routing/static-route-manager.cc	Fri Jul 13 14:37:00 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 ());