diff options
author | Lamanna <jlamanna@gmail.com> | 2017-05-29 21:46:53 -0400 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-06-01 12:46:40 +0900 |
commit | 52a0f719875dbe968e5943c8eacdaba2192855d4 (patch) | |
tree | 93f5edf2cca7b9261ec0bbb6473a37d059a04b69 /table/path.go | |
parent | 99336372ab2ae8a3b61af63abbcbd70223a1dfe1 (diff) |
Fix RouteDistinguisher parsing and VPNV6 VRF rib parsing
Diffstat (limited to 'table/path.go')
-rw-r--r-- | table/path.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/table/path.go b/table/path.go index 0453139a..b2984fe4 100644 --- a/table/path.go +++ b/table/path.go @@ -1105,12 +1105,13 @@ func (p *Path) ToLocal() *Path { n := nlri.(*bgp.LabeledVPNIPv6AddrPrefix) _, c, _ := net.ParseCIDR(n.IPPrefix()) ones, _ := c.Mask.Size() - nlri = bgp.NewIPAddrPrefix(uint8(ones), c.IP.String()) + nlri = bgp.NewIPv6AddrPrefix(uint8(ones), c.IP.String()) default: return p } path := NewPath(p.OriginInfo().source, nlri, p.IsWithdraw, p.GetPathAttrs(), p.OriginInfo().timestamp, false) path.delPathAttr(bgp.BGP_ATTR_TYPE_EXTENDED_COMMUNITIES) + if f == bgp.RF_IPv4_VPN { nh := path.GetNexthop() path.delPathAttr(bgp.BGP_ATTR_TYPE_MP_REACH_NLRI) |