From 49c4e6fd67b03288106e40c7b5311992fdfbc4b5 Mon Sep 17 00:00:00 2001 From: Serguei Bezverkhi Date: Wed, 19 Jan 2022 03:05:42 -0500 Subject: [PATCH] remove igm metric attribute from ls prefix Signed-off-by: Serguei Bezverkhi --- pkg/message/ls-prefix.go | 1 - pkg/message/types.go | 1 - 2 files changed, 2 deletions(-) diff --git a/pkg/message/ls-prefix.go b/pkg/message/ls-prefix.go index 787f0598..62911abe 100644 --- a/pkg/message/ls-prefix.go +++ b/pkg/message/ls-prefix.go @@ -69,7 +69,6 @@ func (p *producer) lsPrefix(prfx *base.PrefixNLRI, nextHop string, op int, ph *b msg.RouterID = lsprefix.GetLocalIPv4RouterID() } msg.PrefixMetric = lsprefix.GetPrefixMetric() - msg.IGPMetric = lsprefix.GetIGPMetric() msg.IGPRouteTag = lsprefix.GetPrefixIGPRouteTag() if f, err := lsprefix.GetPrefixIGPFlags(); err == nil { msg.IGPFlags = f diff --git a/pkg/message/types.go b/pkg/message/types.go index 6bd90996..f613d3af 100644 --- a/pkg/message/types.go +++ b/pkg/message/types.go @@ -236,7 +236,6 @@ type LSPrefix struct { IGPRouteTag []uint32 `json:"route_tag,omitempty"` IGPExtRouteTag []uint64 `json:"ext_route_tag,omitempty"` OSPFFwdAddr string `json:"ospf_fwd_addr,omitempty"` - IGPMetric uint32 `json:"igp_metric,omitempty"` Prefix string `json:"prefix,omitempty"` PrefixLen int32 `json:"prefix_len,omitempty"` PrefixMetric uint32 `json:"prefix_metric,omitempty"`