+ if($AS_opened && (($line=~ /<\/platform>/) || ($line=~ /<process/))) {
+ $output_string .= "</AS>\n";
+ $AS_opened = 0;
+ }
+
+ if( (!$AS_opened) && (
+ ($line =~ /<host/) ||
+ ($line =~ /<link/) ||
+ ($line =~ /<cluster/) ||
+ ($line =~ /<router/)
+ )) {
+ $output_string .= " <AS id=\"AS0\" routing=\"Full\">\n";
+ $AS_opened=1;
+ }
+ }
+
+ if($line=~/<route /){$line =~ s/\<route/\<route symmetrical=\"NO\"/g;}