Skip to content

Commit

Permalink
bird2: Remove stray whitespace when no MD5
Browse files Browse the repository at this point in the history
When no MD5 password is set, there should not be extra whitespace.
  • Loading branch information
rlaager committed May 27, 2023
1 parent 699c4fd commit 2990ea6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,9 @@ function f_import_as<?= $int['autsys'] ?>()
import where f_import_as<?= $int['autsys'] ?>();
export none;
};

<?php if( $int['bgpmd5secret'] && !$t->router->skip_md5 ): ?>password "<?= $int['bgpmd5secret'] ?>";<?php endif; ?>

<?php if( $int['bgpmd5secret'] && !$t->router->skip_md5 ): ?>
password "<?= $int['bgpmd5secret'] ?>";
<?php endif; ?>
}

<?php endforeach; ?>
5 changes: 3 additions & 2 deletions resources/views/api/v4/router/server/bird2/neighbors.foil.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,9 @@
table t_<?= $int['fvliid'] ?>_as<?= $int['autsys'] ?>;
export filter f_export_as<?= $int['autsys'] ?>;
};
<?php if( $int['bgpmd5secret'] && !$t->router->skip_md5 ): ?>password "<?= $int['bgpmd5secret'] ?>";<?php endif; ?>

<?php if( $int['bgpmd5secret'] && !$t->router->skip_md5 ): ?>
password "<?= $int['bgpmd5secret'] ?>";
<?php endif; ?>
}

<?php endforeach; ?>
Expand Down

0 comments on commit 2990ea6

Please sign in to comment.