From 35be0e369469e8c1892dabd73e18743dd3d2dc09 Mon Sep 17 00:00:00 2001 From: Thomas Morin Date: Mon, 27 Jun 2016 18:08:02 +0200 Subject: Fix inversion between v4 and v6 in ValidateAttribute This fixes a trivial inversion of v4/v6 calls in ValidateAttribute. Bug-Url: #991 --- packet/bgp/validate.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packet/bgp/validate.go b/packet/bgp/validate.go index 84a82c87..da7aa5fc 100644 --- a/packet/bgp/validate.go +++ b/packet/bgp/validate.go @@ -82,9 +82,9 @@ func ValidateAttribute(a PathAttributeInterface, rfs map[RouteFamily]bool, doCon case RF_FS_IPv6_UC: value = prefix.(*FlowSpecIPv6Unicast).Value case RF_FS_IPv4_VPN: - value = prefix.(*FlowSpecIPv6VPN).Value - case RF_FS_IPv6_VPN: value = prefix.(*FlowSpecIPv4VPN).Value + case RF_FS_IPv6_VPN: + value = prefix.(*FlowSpecIPv6VPN).Value case RF_FS_L2_VPN: value = prefix.(*FlowSpecL2VPN).Value } -- cgit v1.2.3