fully remove py23_compat
This commit is contained in:
1 parent
1ff7c2a090
commit
34ac2e5d4c
1 file changed
+6
-7
+6
-7
@@ -36,7 +36,6 @@ from napalm.base.exceptions import (
|
|||||||
CommandErrorException,
|
CommandErrorException,
|
||||||
)
|
)
|
||||||
|
|
||||||
from napalm.base.utils import py23_compat
|
|
||||||
import napalm.base.helpers
|
import napalm.base.helpers
|
||||||
|
|
||||||
|
|
||||||
@@ -245,15 +244,15 @@ class S350Driver(NetworkDriver):
|
|||||||
if not line:
|
if not line:
|
||||||
continue
|
continue
|
||||||
interface = line.split()[0]
|
interface = line.split()[0]
|
||||||
interfaces.append(py23_compat.text_type(interface))
|
interfaces.append(str(interface))
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'fqdn': py23_compat.text_type(fqdn),
|
'fqdn':str(fqdn),
|
||||||
'hostname': py23_compat.text_type(hostname),
|
'hostname': str(hostname),
|
||||||
'interface_list': interfaces,
|
'interface_list': interfaces,
|
||||||
'model': py23_compat.text_type(model),
|
'model': str(model),
|
||||||
'os_version': py23_compat.text_type(os_version),
|
'os_version': str(os_version),
|
||||||
'serial_number': py23_compat.text_type(serial_number),
|
'serial_number': str(serial_number),
|
||||||
'uptime': uptime,
|
'uptime': uptime,
|
||||||
'vendor': u'Cisco',
|
'vendor': u'Cisco',
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user