diff --git a/neutron_vpnaas/services/vpn/device_drivers/cisco_csr_rest_client.py b/neutron_vpnaas/services/vpn/device_drivers/cisco_csr_rest_client.py index 8e017b189..64f200b31 100644 --- a/neutron_vpnaas/services/vpn/device_drivers/cisco_csr_rest_client.py +++ b/neutron_vpnaas/services/vpn/device_drivers/cisco_csr_rest_client.py @@ -90,7 +90,7 @@ class CsrRestClient(object): if method == 'POST' and self.status == requests.codes.CREATED: return response.headers.get('location', '') if self.status >= requests.codes.BAD_REQUEST and response.content: - if 'error-code' in response.content: + if b'error-code' in response.content: content = jsonutils.loads(response.content) LOG.debug("Error response content %s", content) return content diff --git a/tox.ini b/tox.ini index b9e158257..a4e005459 100644 --- a/tox.ini +++ b/tox.ini @@ -94,6 +94,7 @@ commands = python -m testtools.run \ neutron_vpnaas.tests.unit.extensions.test_vpnaas \ neutron_vpnaas.tests.unit.services.vpn.device_drivers.test_ipsec \ neutron_vpnaas.tests.unit.services.vpn.device_drivers.test_cisco_ipsec \ + neutron_vpnaas.tests.unit.services.vpn.device_drivers.test_cisco_csr_rest_client \ neutron_vpnaas.tests.unit.services.vpn.test_vpn_service \ neutron_vpnaas.tests.unit.services.vpn.test_vyatta_vpn_service \ neutron_vpnaas.tests.unit.services.vpn.service_drivers.test_vyatta_ipsec \