X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FRO.git;a=blobdiff_plain;f=RO-SDN-onos_openflow%2Fosm_rosdn_onosof%2Fonos_of.py;h=68833982dee3604a902da4fd9e3cb6b3e3972cca;hp=060d1d3757f8d2213c40c7c94d7a133bc400cf7d;hb=4126d05e24ada55226bb13a9d556655811cedadc;hpb=1d2f2609c00490a2b25ffedfc01ff97bc3ed571d diff --git a/RO-SDN-onos_openflow/osm_rosdn_onosof/onos_of.py b/RO-SDN-onos_openflow/osm_rosdn_onosof/onos_of.py index 060d1d37..68833982 100644 --- a/RO-SDN-onos_openflow/osm_rosdn_onosof/onos_of.py +++ b/RO-SDN-onos_openflow/osm_rosdn_onosof/onos_of.py @@ -47,9 +47,9 @@ class OfConnOnos(OpenflowConn): """ def __init__(self, params): """ Constructor. - Params: dictionary with the following keys: + :param params: dictionary with the following keys: of_dpid: DPID to use for this controller ?? Does a controller have a dpid? - url: must be [http://HOST:PORT/ + url: must be [http://HOST:PORT/] of_user: user credentials, can be missing or None of_password: password credentials of_debug: debug level for logging. Default to ERROR @@ -69,7 +69,7 @@ class OfConnOnos(OpenflowConn): url = url + "/" self.url = url + "onos/v1/" - #internal variables + # internal variables self.name = "onosof" self.headers = {'content-type':'application/json','accept':'application/json',} @@ -87,7 +87,7 @@ class OfConnOnos(OpenflowConn): self.auth = self.auth.decode() self.headers['authorization'] = 'Basic ' + self.auth - self.logger = logging.getLogger('vim.OF.onos') + self.logger = logging.getLogger('SDN.onosOF') self.logger.setLevel( getattr(logging, params.get("of_debug", "ERROR")) ) self.ip_address = None