]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: the CephNode fixture should provide the cluster subnet
authorAndrew Schoen <aschoen@redhat.com>
Mon, 5 Dec 2016 15:47:33 +0000 (09:47 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 6 Dec 2016 20:56:19 +0000 (14:56 -0600)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
tests/conftest.py

index 7611a62f503ce62391b572a5689b48ca72a5bd9d..3f31ee8d9d788dccc82a0457d4e57af2311e0e1f 100644 (file)
@@ -11,8 +11,10 @@ def CephNode(Ansible, Interface, request):
     # I can assume eth1 because I know all the vagrant
     # boxes we test with use that interface
     address = Interface("eth1").addresses[0]
+    subnet = ".".join(vars["public_network"].split(".")[0:-1])
     data = dict(
         address=address,
+        subnet=subnet,
         vars=vars,
     )
     return data