summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2014-07-20 17:16:13 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-07-23 22:43:24 +0900
commited7ee8fbdb577c14aff03a9619af31900d53577a (patch)
tree6084fbfcde68a33bb22cb258d8e1d276f7fe4d66
parentd3d5d8a5982a7b948efb9934228019e862477b58 (diff)
bgp: shut up runtime warning due to configuration file loading
this patch shut up the warning shown below /home/wataru/etc/bgpconf01.py:1: RuntimeWarning: Parent module 'bgpspeaker' not found while handling absolute import import os Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/services/protocols/bgp/application.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ryu/services/protocols/bgp/application.py b/ryu/services/protocols/bgp/application.py
index b803d369..786c1edc 100644
--- a/ryu/services/protocols/bgp/application.py
+++ b/ryu/services/protocols/bgp/application.py
@@ -124,14 +124,14 @@ class RyuBGPSpeaker(RyuApp):
def load_config(self, config_file):
"""Validates give file as settings file for BGPSpeaker.
- Load the configuration from file as bgpspeaker.setting module.
+ Load the configuration from file as settings module.
"""
if not config_file or not isinstance(config_file, str):
raise ApplicationException('Invalid configuration file.')
# Check if file can be read
try:
- return imp.load_source('bgpspeaker.settings', config_file)
+ return imp.load_source('settings', config_file)
except Exception as e:
raise ApplicationException(desc=str(e))