From 1d14b8ecfba61de524e0266e4a0fddb3b111f235 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Wed, 9 Jan 2019 09:07:06 +0900 Subject: silence staticcheck warnings Signed-off-by: FUJITA Tomonori --- internal/pkg/table/table.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/pkg/table/table.go') diff --git a/internal/pkg/table/table.go b/internal/pkg/table/table.go index bcde936b..a2002b41 100644 --- a/internal/pkg/table/table.go +++ b/internal/pkg/table/table.go @@ -75,13 +75,13 @@ func (t *Table) deletePathsByVrf(vrf *Vrf) []*Path { for _, p := range dest.knownPathList { var rd bgp.RouteDistinguisherInterface nlri := p.GetNlri() - switch nlri.(type) { + switch v := nlri.(type) { case *bgp.LabeledVPNIPAddrPrefix: - rd = nlri.(*bgp.LabeledVPNIPAddrPrefix).RD + rd = v.RD case *bgp.LabeledVPNIPv6AddrPrefix: - rd = nlri.(*bgp.LabeledVPNIPv6AddrPrefix).RD + rd = v.RD case *bgp.EVPNNLRI: - rd = nlri.(*bgp.EVPNNLRI).RD() + rd = v.RD() default: return pathList } -- cgit v1.2.3