diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-08-03 15:41:25 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-08-03 21:59:39 +0900 |
commit | cf23ecec82526d33a67cb101c4384839fea2f95f (patch) | |
tree | b27c10ff964902d41c8fdce81c5cadcf5ca64e52 /table/path.go | |
parent | 84dd9d6983564b37b7e146264c44da6874a08cf4 (diff) |
mrt: merge gomrt to gobgp cli command
Usage
$ gobgp mrt inject global <filename> [<count>]
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table/path.go')
-rw-r--r-- | table/path.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/table/path.go b/table/path.go index 251eefbc..18b118b9 100644 --- a/table/path.go +++ b/table/path.go @@ -35,9 +35,10 @@ type Path struct { pathAttrs []bgp.PathAttributeInterface medSetByTargetNeighbor bool timestamp time.Time + NoImplicitWithdraw bool } -func NewPath(source *PeerInfo, nlri bgp.AddrPrefixInterface, isWithdraw bool, pattrs []bgp.PathAttributeInterface, medSetByTargetNeighbor bool, timestamp time.Time) *Path { +func NewPath(source *PeerInfo, nlri bgp.AddrPrefixInterface, isWithdraw bool, pattrs []bgp.PathAttributeInterface, medSetByTargetNeighbor bool, timestamp time.Time, noImplicitWithdraw bool) *Path { if !isWithdraw && pattrs == nil { log.WithFields(log.Fields{ "Topic": "Table", @@ -54,6 +55,7 @@ func NewPath(source *PeerInfo, nlri bgp.AddrPrefixInterface, isWithdraw bool, pa pathAttrs: pattrs, medSetByTargetNeighbor: medSetByTargetNeighbor, timestamp: timestamp, + NoImplicitWithdraw: noImplicitWithdraw, } } @@ -172,7 +174,7 @@ func (path *Path) Clone(isWithdraw bool) *Path { newPathAttrs[i] = v } - return NewPath(path.source, nlri, isWithdraw, newPathAttrs, false, path.timestamp) + return NewPath(path.source, nlri, isWithdraw, newPathAttrs, false, path.timestamp, path.NoImplicitWithdraw) } func (path *Path) GetRouteFamily() bgp.RouteFamily { |