diff options
author | Thomas Morin <thomas.morin@orange.com> | 2016-06-27 18:08:02 +0200 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-06-16 02:17:12 +0900 |
commit | 35be0e369469e8c1892dabd73e18743dd3d2dc09 (patch) | |
tree | 38c73b5bf8b5b7be5ed650e1278babd9461fce1a | |
parent | 6ccc0a016bd1225324389ed1659f161b37ab4801 (diff) |
Fix inversion between v4 and v6 in ValidateAttribute
This fixes a trivial inversion of v4/v6 calls
in ValidateAttribute.
Bug-Url: #991
-rw-r--r-- | packet/bgp/validate.go | 4 |
1 files 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 } |