From cd9b47ceb8a494c9868691dee995d0b621da1d3d Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Mon, 5 Dec 2016 09:47:33 -0600 Subject: [PATCH] tests: the CephNode fixture should provide the cluster subnet Signed-off-by: Andrew Schoen --- tests/conftest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index 7611a62f5..3f31ee8d9 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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 -- 2.39.5