Increase testing of network connectivity
Adds ping against VM's internal network elements:
need all of them because agents might be located on different hosts
1. Router port
2. DHCP port
Adds ping against public network default gateway implying external
connectivity. Any further network tests are outside the Openstack cloud and the
testing environment
Partially Implements: blueprint neutron-advanced-scenarios
Change-Id: I9aaba5496581c9e3472d7a3846b1a0464f6334e6
diff --git a/tempest/api/network/common.py b/tempest/api/network/common.py
index d68ff1a..97e120f 100644
--- a/tempest/api/network/common.py
+++ b/tempest/api/network/common.py
@@ -61,6 +61,11 @@
super(DeletableSubnet, self).__init__(*args, **kwargs)
self._router_ids = set()
+ def update(self, *args, **kwargs):
+ body = dict(subnet=dict(*args, **kwargs))
+ result = self.client.update_subnet(subnet=self.id, body=body)
+ super(DeletableSubnet, self).update(**result['subnet'])
+
def add_to_router(self, router_id):
self._router_ids.add(router_id)
body = dict(subnet_id=self.id)