Skip IPv6 scenarios for baremetal

These tests attempt to create two isolated tenant networks and
boot servers on each.  Baremetal relies on flat networking that
does not support network isolation, so these tests should be skipped
in that case.

Change-Id: Ia7383114c17e4d901c81b8e7b6b2822a7ec4f908
This commit is contained in:
Adam Gandelman 2014-12-12 10:38:23 -08:00
parent 721f80d90d
commit ab6106ddaa

View File

@ -48,6 +48,9 @@ class TestGettingAddress(manager.NetworkScenarioTest):
msg = ('Either tenant_networks_reachable must be "true", or ' msg = ('Either tenant_networks_reachable must be "true", or '
'public_network_id must be defined.') 'public_network_id must be defined.')
raise cls.skipException(msg) raise cls.skipException(msg)
if CONF.baremetal.driver_enabled:
msg = ('Baremetal does not currently support network isolation')
raise cls.skipException(msg)
super(TestGettingAddress, cls).check_preconditions() super(TestGettingAddress, cls).check_preconditions()