summaryrefslogtreecommitdiffhomepage
path: root/table/path.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-12-26 19:24:46 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-12-26 19:24:46 -0800
commit7a2b3951160804c6895714621099168e8e56aa74 (patch)
treef847e72ac7fc6064774f5de1afca77c712d5809d /table/path.go
parent01157e466a510a9d7c7290c26a131734e7566261 (diff)
add MOD_PATH API
Handle only one route unlike MOD_PATHS API. When the API returns an uuid when a route is created. The uuid can be used to remove the route later. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table/path.go')
-rw-r--r--table/path.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/table/path.go b/table/path.go
index 6812a184..df84645a 100644
--- a/table/path.go
+++ b/table/path.go
@@ -42,6 +42,7 @@ type Path struct {
reason BestPathReason
filtered map[string]PolicyDirection
key string
+ Uuid []byte
}
func NewPath(source *PeerInfo, nlri bgp.AddrPrefixInterface, isWithdraw bool, pattrs []bgp.PathAttributeInterface, medSetByTargetNeighbor bool, timestamp time.Time, noImplicitWithdraw bool) *Path {