diff options
author | Wataru Ishida <ishida.wataru@lab.ntt.co.jp> | 2017-05-06 05:47:54 -0400 |
---|---|---|
committer | Wataru Ishida <ishida.wataru@lab.ntt.co.jp> | 2017-05-06 09:30:10 -0400 |
commit | 86d9587f757fe728996d36c4acfbf7417fda4fb2 (patch) | |
tree | 80bab06a054dcfb76a376ae53537bc5afc86f326 /server/server.go | |
parent | 897adf530cfe0247f3b5d8e60d846cdbdc7c1b88 (diff) |
cli: speed up showing a specific defined-set
Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/server.go')
-rw-r--r-- | server/server.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 |