Skip to content

Commit 213a685

Browse files
authored
Merge pull request #24 from DEIS-Tools/output_cleanup_2
no output of empty routers
2 parents 1efb87b + e36fb8e commit 213a685

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/model/Network.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ namespace aalwines
358358
for(auto& r : _routers)
359359
{
360360
if(r->is_null()) continue;
361+
if(r->interfaces().empty()) continue;
361362
s << " <router name=\"" << r->name() << "\">\n";
362363
s << " <interfaces>\n";
363364
for(auto& inf : r->interfaces())

0 commit comments

Comments
 (0)