From 68ab0bf250fedf29235b4a22979bb22a93d71cfa Mon Sep 17 00:00:00 2001 From: David Barroso Date: Wed, 2 Dec 2015 13:38:18 +0100 Subject: [PATCH] Bugfixes --- napalm/fortios.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/napalm/fortios.py b/napalm/fortios.py index 5e61f16..f1ccd37 100644 --- a/napalm/fortios.py +++ b/napalm/fortios.py @@ -124,13 +124,13 @@ class FortiOSDriver(NetworkDriver): domain = execute_get(self.device, 'get system dns | grep domain')['domain'] return { - 'vendor': 'Fortigate', - 'os_version': system_status['Version'].split(',')[0].split()[1], + 'vendor': unicode('Fortigate'), + 'os_version': unicode(system_status['Version'].split(',')[0].split()[1]), 'uptime': convert_uptime_string_seconds(performance_status['Uptime']), - 'serial_number': system_status['Serial-Number'], - 'model': system_status['Version'].split(',')[0].split()[0], - 'hostname': system_status['Hostname'], - 'fqdn': '{}.{}'.format(system_status['Hostname'], domain), + 'serial_number': unicode(system_status['Serial-Number']), + 'model': unicode(system_status['Version'].split(',')[0].split()[0]), + 'hostname': unicode(system_status['Hostname']), + 'fqdn': u'{}.{}'.format(system_status['Hostname'], domain), 'interface_list': interface_list }