aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sfc/lib/utils.py27
-rw-r--r--sfc/tests/functest/sfc_one_chain_two_service_functions.py3
-rw-r--r--sfc/tests/functest/sfc_symmetric_chain.py2
-rw-r--r--sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py3
4 files changed, 0 insertions, 35 deletions
diff --git a/sfc/lib/utils.py b/sfc/lib/utils.py
index bc7a9ddc..cb831969 100644
--- a/sfc/lib/utils.py
+++ b/sfc/lib/utils.py
@@ -58,19 +58,6 @@ def run_cmd_remote(ip, cmd, username="root", passwd="opnfv"):
return run_cmd(ssh_cmd)
-def configure_iptables(controller_nodes):
- """Configures IPTABLES on OpenStack Controller"""
- iptable_cmds = ["iptables -P INPUT ACCEPT",
- "iptables -t nat -P INPUT ACCEPT",
- "iptables -A INPUT -m state \
- --state NEW,ESTABLISHED,RELATED -j ACCEPT"]
-
- for cmd in iptable_cmds:
- logger.info("Configuring %s on contoller" % cmd)
- for controller in controller_nodes:
- controller.run_cmd(cmd)
-
-
def download_image(url, image_path):
image_filename = os.path.basename(image_path)
image_url = "%s/%s" % (url, image_filename)
@@ -530,20 +517,6 @@ def wait_for_classification_rules(ovs_logger, compute_nodes, odl_ip, odl_port,
logger.error('Error when waiting for classification rules: %s' % e)
-def setup_compute_node(cidr, compute_nodes):
- logger.info("bringing up br-int iface and flushing arp tables")
- grep_cidr_routes = ("ip route | grep -o {0} || true".format(cidr)).strip()
- add_cidr = "ip route add {0} dev br-int".format(cidr)
- for compute in compute_nodes:
- compute.run_cmd("ip -s -s neigh flush all")
- compute.run_cmd("ifconfig br-int up")
- if not compute.run_cmd(grep_cidr_routes):
- logger.info("adding route %s in %s" % (cidr, compute.ip))
- compute.run_cmd(add_cidr)
- else:
- logger.info("route %s already exists" % cidr)
-
-
def get_nova_id(tacker_client, resource, vnf_id=None, vnf_name=None):
vnf = os_tacker.get_vnf(tacker_client, vnf_id, vnf_name)
try:
diff --git a/sfc/tests/functest/sfc_one_chain_two_service_functions.py b/sfc/tests/functest/sfc_one_chain_two_service_functions.py
index 7d421efc..3dbae79c 100644
--- a/sfc/tests/functest/sfc_one_chain_two_service_functions.py
+++ b/sfc/tests/functest/sfc_one_chain_two_service_functions.py
@@ -62,9 +62,6 @@ def main():
results.add_to_summary(2, "STATUS", "SUBTEST")
results.add_to_summary(0, "=")
- test_utils.setup_compute_node(TESTCASE_CONFIG.subnet_cidr, compute_nodes)
- test_utils.configure_iptables(controller_nodes)
-
test_utils.download_image(COMMON_CONFIG.url,
COMMON_CONFIG.image_path)
_, custom_flv_id = os_utils.get_or_create_flavor(
diff --git a/sfc/tests/functest/sfc_symmetric_chain.py b/sfc/tests/functest/sfc_symmetric_chain.py
index f515fab3..af49b998 100644
--- a/sfc/tests/functest/sfc_symmetric_chain.py
+++ b/sfc/tests/functest/sfc_symmetric_chain.py
@@ -56,8 +56,6 @@ def main():
results.add_to_summary(2, "STATUS", "SUBTEST")
results.add_to_summary(0, "=")
- test_utils.setup_compute_node(TESTCASE_CONFIG.subnet_cidr, compute_nodes)
- test_utils.configure_iptables(controller_nodes)
test_utils.download_image(COMMON_CONFIG.url, COMMON_CONFIG.image_path)
neutron_client = os_utils.get_neutron_client()
diff --git a/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py b/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py
index 068c842d..31469583 100644
--- a/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py
+++ b/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py
@@ -74,9 +74,6 @@ def main():
'\033[91mexport INSTALLER_IP=<ip>\033[0m')
sys.exit(1)
- test_utils.setup_compute_node(TESTCASE_CONFIG.subnet_cidr, compute_nodes)
- test_utils.configure_iptables(controller_nodes)
-
test_utils.download_image(COMMON_CONFIG.url,
COMMON_CONFIG.image_path)
_, custom_flv_id = os_utils.get_or_create_flavor(