Merge "Adding sleep after port creation" into mcp/caracal
diff --git a/neutron_tempest_plugin/scenario/test_connectivity.py b/neutron_tempest_plugin/scenario/test_connectivity.py
index a6fc893..be0fc35 100644
--- a/neutron_tempest_plugin/scenario/test_connectivity.py
+++ b/neutron_tempest_plugin/scenario/test_connectivity.py
@@ -13,6 +13,8 @@
# License for the specific language governing permissions and limitations
# under the License.
+import time
+
import netaddr
from neutron_lib import constants
@@ -105,6 +107,10 @@
self.create_router_interface(ap1_rt['id'], ap1_subnet['id'])
self.create_router_interface(ap2_rt['id'], ap2_subnet['id'])
+ # NOTE(ohryhorov): the sleep below is added to avoid the situation
+ # when a port is not in active state yet but static route is added.
+ time.sleep(15)
+
self.client.update_router(
ap1_rt['id'],
routes=[{"destination": ap2_subnet['cidr'],