From 7a2b3951160804c6895714621099168e8e56aa74 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Sat, 26 Dec 2015 19:24:46 -0800 Subject: 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 --- table/path.go | 1 + 1 file changed, 1 insertion(+) (limited to 'table') 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 { -- cgit v1.2.3