From 5c5609e3b58987ce322eb1ed9262f5a406256abf Mon Sep 17 00:00:00 2001 From: Maximilian Wilhelm <max@sdn.clinic> Date: Sun, 24 Jun 2018 13:14:34 +0200 Subject: [PATCH] Annote BGP route types as 'internal' and 'external' Signed-off-by: Maximilian Wilhelm <max@sdn.clinic> --- route/bgp_path.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/route/bgp_path.go b/route/bgp_path.go index 38a5a8c9..03e25dd0 100644 --- a/route/bgp_path.go +++ b/route/bgp_path.go @@ -175,9 +175,9 @@ func (b *BGPPath) Print() string { origin = "IGP" } - bgpType := "iBGP" + bgpType := "internal" if b.EBGP { - bgpType = "eBGP" + bgpType = "external" } ret := fmt.Sprintf("\t\tLocal Pref: %d\n", b.LocalPref) -- GitLab