summaryrefslogtreecommitdiffhomepage
path: root/packet/bgp/bgp.go
diff options
context:
space:
mode:
authorLamanna <jlamanna@gmail.com>2017-05-29 21:46:53 -0400
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-06-01 12:46:40 +0900
commit52a0f719875dbe968e5943c8eacdaba2192855d4 (patch)
tree93f5edf2cca7b9261ec0bbb6473a37d059a04b69 /packet/bgp/bgp.go
parent99336372ab2ae8a3b61af63abbcbd70223a1dfe1 (diff)
Fix RouteDistinguisher parsing and VPNV6 VRF rib parsing
Diffstat (limited to 'packet/bgp/bgp.go')
-rw-r--r--packet/bgp/bgp.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/packet/bgp/bgp.go b/packet/bgp/bgp.go
index 34bff21a..034a2bcb 100644
--- a/packet/bgp/bgp.go
+++ b/packet/bgp/bgp.go
@@ -1271,7 +1271,7 @@ func ParseRouteDistinguisher(rd string) (RouteDistinguisherInterface, error) {
if err != nil {
return nil, err
}
- assigned, _ := strconv.Atoi(elems[9])
+ assigned, _ := strconv.Atoi(elems[10])
ip := net.ParseIP(elems[1])
switch {
case ip.To4() != nil: