From 392d0bee744cf066d6a1b901d294d9ea62bfeb57 Mon Sep 17 00:00:00 2001 From: ashoksingh Date: Wed, 22 Feb 2017 16:19:45 +0530 Subject: [PATCH] Add missing return statement The return statement was missed when vrouter_api.py was modified to use REST interface instead of Thrift. Change-Id: I7ee34a5cf8dd623edc0598039174b4343e810d96 Closes-Bug: #1664819 --- .../contrail-vrouter-api/contrail_vrouter_api/vrouter_api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vnsw/contrail-vrouter-api/contrail_vrouter_api/vrouter_api.py b/src/vnsw/contrail-vrouter-api/contrail_vrouter_api/vrouter_api.py index 00076551baa..8388b9f9897 100644 --- a/src/vnsw/contrail-vrouter-api/contrail_vrouter_api/vrouter_api.py +++ b/src/vnsw/contrail-vrouter-api/contrail_vrouter_api/vrouter_api.py @@ -89,6 +89,9 @@ def add_port(self, vm_uuid_str, vif_uuid_str, interface_name, mac_address, self._ports[vif_uuid_str] = cmd self._resynchronize() + if (ret_code != 0): + return False + return True finally: if self._semaphore: