Commit 86080c59 authored by Aleksey Shirokih's avatar Aleksey Shirokih
Browse files

fix Cisco.get_interfaces. best one

--HG--
branch : feature/microservices
parent 75753367
......@@ -9,6 +9,7 @@
## Python modules
import re
import six
## NOC modules
from noc.core.profile.base import BaseProfile
......@@ -57,7 +58,7 @@ class Profile(BaseProfile):
self.convert_interface_name_cisco(l.strip()),
int(r.strip())
)
if isinstance(interface, basestring):
if isinstance(interface, six.string_types):
il = interface.lower()
else:
il = interface.name.lower()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment