Skip to content

Commit 2990ea6

Browse files
committed
bird2: Remove stray whitespace when no MD5
When no MD5 password is set, there should not be extra whitespace.
1 parent 699c4fd commit 2990ea6

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

resources/views/api/v4/router/collector/bird2/neighbors.foil.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,9 @@ function f_import_as<?= $int['autsys'] ?>()
239239
import where f_import_as<?= $int['autsys'] ?>();
240240
export none;
241241
};
242-
243-
<?php if( $int['bgpmd5secret'] && !$t->router->skip_md5 ): ?>password "<?= $int['bgpmd5secret'] ?>";<?php endif; ?>
244-
242+
<?php if( $int['bgpmd5secret'] && !$t->router->skip_md5 ): ?>
243+
password "<?= $int['bgpmd5secret'] ?>";
244+
<?php endif; ?>
245245
}
246246

247247
<?php endforeach; ?>

resources/views/api/v4/router/server/bird2/neighbors.foil.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,9 @@
281281
table t_<?= $int['fvliid'] ?>_as<?= $int['autsys'] ?>;
282282
export filter f_export_as<?= $int['autsys'] ?>;
283283
};
284-
<?php if( $int['bgpmd5secret'] && !$t->router->skip_md5 ): ?>password "<?= $int['bgpmd5secret'] ?>";<?php endif; ?>
285-
284+
<?php if( $int['bgpmd5secret'] && !$t->router->skip_md5 ): ?>
285+
password "<?= $int['bgpmd5secret'] ?>";
286+
<?php endif; ?>
286287
}
287288

288289
<?php endforeach; ?>

0 commit comments

Comments
 (0)