remove inappropriate assertions that popped when routing disabled

This commit is contained in:
Craig Dowell committed 2007-07-13 14:35:24 -07:00
1 parent 65faee4e7b
commit 2f2b10d22b
1 file changed
+6 -2
+6 -2
View File
@@ -145,7 +145,11 @@ StaticRouteManager::BuildStaticRoutingDatabase ()
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 @@ StaticRouteManager::InitializeRoutes ()
Ptr<StaticRouter> rtr =
node->QueryInterface<StaticRouter> (StaticRouter::iid);
NS_ASSERT_MSG(rtr, "QI for <StaticRouter> interface failed");
if (rtr && rtr->GetNumLSAs () )
{
SPFCalculate(rtr->GetRouterId ());