# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from tempest.api.network import base from tempest.lib.common.utils import data_utils from nuage_tempest_plugin.lib.topology import Topology from nuage_tempest_plugin.lib.utils import constants as n_constants from nuage_tempest_plugin.lib.utils import exceptions as n_exceptions from nuage_tempest_plugin.services.nuage_client import NuageRestClient from nuage_tempest_plugin.tests.api.external_id.external_id import ExternalId CONF = Topology.get_conf() LOG = Topology.get_logger(__name__) class ExternalIdForL3domainTest(base.BaseAdminNetworkTest): def _remove_router_interface_with_subnet_id(self, router_id, subnet_id): body = self.routers_client.remove_router_interface(router_id, subnet_id=subnet_id) self.assertEqual(subnet_id, body['subnet_id']) class MatchingVsdl3domain(object): def __init__(self, outer, router): """Construct a Vsd_l3domain. """ self.test = outer self.router = router self.vsd_l3domain = None self.vsd_zones = None
# License for the specific language governing permissions and limitations # under the License. import os import shlex import six import subprocess from tempest.lib import exceptions from nuage_tempest_plugin.lib.topology import Topology CLI_CLIENT_CONSOLE_LOGGING = False CONF = Topology.get_conf() LOG = Topology.get_logger(__name__, console_logging=CLI_CLIENT_CONSOLE_LOGGING) # TODO(Kris) Refactor me - this for now is copy of execute() method from # TODO(Kris) tempest/tempest/lib/cli/base.py # ------------------------- don't change me ---------------------------- def execute(cmd, action, flags='', params='', fail_ok=False, merge_stderr=False, cli_dir='/usr/bin', prefix=''): """Executes specified command for the given action. :param cmd: command to be executed :type cmd: string :param action: string of the cli command to run :type action: string :param flags: any optional cli flags to use :type flags: string