From 86d9587f757fe728996d36c4acfbf7417fda4fb2 Mon Sep 17 00:00:00 2001 From: Wataru Ishida Date: Sat, 6 May 2017 05:47:54 -0400 Subject: cli: speed up showing a specific defined-set Signed-off-by: Wataru Ishida --- server/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server') diff --git a/server/server.go b/server/server.go index 8ced6147..f3861de3 100644 --- a/server/server.go +++ b/server/server.go @@ -1869,9 +1869,9 @@ func (s *BgpServer) DisableNeighbor(addr, communication string) error { }, true) } -func (s *BgpServer) GetDefinedSet(typ table.DefinedType) (sets *config.DefinedSets, err error) { +func (s *BgpServer) GetDefinedSet(typ table.DefinedType, name string) (sets *config.DefinedSets, err error) { err = s.mgmtOperation(func() error { - sets, err = s.policy.GetDefinedSet(typ) + sets, err = s.policy.GetDefinedSet(typ, name) return nil }, false) return sets, err -- cgit v1.2.3