From 2f856a0dcd278ff0a57b42ecd1fa601c6c8c105c Mon Sep 17 00:00:00 2001 From: Richard Laager Date: Fri, 26 May 2023 23:17:24 -0500 Subject: [PATCH] bird2: Remove stray whitespace when no MD5 When no MD5 password is set, there should not be extra whitespace. --- data/ci/known-good/ci-apiv4-b2-rc1-lan1-ipv4.conf | 3 --- .../views/api/v4/router/collector/bird2/neighbors.foil.php | 6 +++--- .../views/api/v4/router/server/bird2/neighbors.foil.php | 5 +++-- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/data/ci/known-good/ci-apiv4-b2-rc1-lan1-ipv4.conf b/data/ci/known-good/ci-apiv4-b2-rc1-lan1-ipv4.conf index 1961ad89c..3a28162c4 100644 --- a/data/ci/known-good/ci-apiv4-b2-rc1-lan1-ipv4.conf +++ b/data/ci/known-good/ci-apiv4-b2-rc1-lan1-ipv4.conf @@ -443,7 +443,6 @@ protocol bgp pb_as42_vli3_ipv4 { import where f_import_as42(); export none; }; - password "mcWsqMdzGwTKt67g"; } @@ -583,7 +582,6 @@ protocol bgp pb_as112_vli4_ipv4 { import where f_import_as112(); export none; }; - password "w83fmGpRDtaKomQo"; } @@ -729,7 +727,6 @@ protocol bgp pb_as1213_vli1_ipv4 { import where f_import_as1213(); export none; }; - password "N7rX2SdfbRsyBLTm"; } diff --git a/resources/views/api/v4/router/collector/bird2/neighbors.foil.php b/resources/views/api/v4/router/collector/bird2/neighbors.foil.php index 02ff4968b..551103028 100644 --- a/resources/views/api/v4/router/collector/bird2/neighbors.foil.php +++ b/resources/views/api/v4/router/collector/bird2/neighbors.foil.php @@ -239,9 +239,9 @@ function f_import_as() import where f_import_as(); export none; }; - - router->skip_md5 ): ?>password ""; - +router->skip_md5 ): ?> + password ""; + } diff --git a/resources/views/api/v4/router/server/bird2/neighbors.foil.php b/resources/views/api/v4/router/server/bird2/neighbors.foil.php index 92fad682a..b40604689 100644 --- a/resources/views/api/v4/router/server/bird2/neighbors.foil.php +++ b/resources/views/api/v4/router/server/bird2/neighbors.foil.php @@ -281,8 +281,9 @@ table t__as; export filter f_export_as; }; - router->skip_md5 ): ?>password ""; - +router->skip_md5 ): ?> + password ""; + }