diff options
-rw-r--r-- | ryu/services/protocols/bgp/api/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/services/protocols/bgp/api/base.py b/ryu/services/protocols/bgp/api/base.py index aab5fd8f..489e318e 100644 --- a/ryu/services/protocols/bgp/api/base.py +++ b/ryu/services/protocols/bgp/api/base.py @@ -73,7 +73,7 @@ def register(**kwargs): Does not do any check or validation. """ def decorator(func): - _CALL_REGISTRY[kwargs.get(API_SYM, func.func_name)] = func + _CALL_REGISTRY[kwargs.get(API_SYM, func.__name__)] = func return func return decorator |