aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Poirier <bpoirier@nvidia.com>2023-12-11 09:07:24 -0500
committerStephen Hemminger <stephen@networkplumber.org>2023-12-22 09:54:23 -0800
commit4f11b21e025721068bf082d7827ce10514715655 (patch)
treec47136355619d9546a5733e7ca72160cf6fce620
parent14c9845f05f842687ea6eec8e4f9f283d1200d72 (diff)
downloadiproute2-4f11b21e025721068bf082d7827ce10514715655.tar.gz
bridge: vni: Remove stray newlines after each interface
Currently, `bridge vni` outputs an empty line after each interface. This is not consistent with the output style of other iproute2 commands, in particular `bridge vlan`. Therefore, remove the empty lines. If there are scripts that parse the normal text output of `bridge vni`, those scripts might be broken by the removal of the empty lines. This is a secondary concern because those scripts should consume the JSON output instead. Before: $ bridge vni dev vni group/remote vxlan1 4001 5000-5010 vxlan2 100 $ After: $ ./bridge/bridge vni dev vni group/remote vxlan1 4001 5000-5010 vxlan2 100 $ Reviewed-by: Petr Machata <petrm@nvidia.com> Tested-by: Petr Machata <petrm@nvidia.com> Signed-off-by: Benjamin Poirier <bpoirier@nvidia.com> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-rw-r--r--bridge/vni.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/bridge/vni.c b/bridge/vni.c
index b597a916e..8f88a706e 100644
--- a/bridge/vni.c
+++ b/bridge/vni.c
@@ -346,8 +346,6 @@ int print_vnifilter_rtm(struct nlmsghdr *n, void *arg)
if (opened)
close_vni_port();
- print_string(PRINT_FP, NULL, "%s", _SL_);
-
fflush(stdout);
return 0;
}