summaryrefslogtreecommitdiffstats
path: root/yardstick/vTC/apexlake/experimental_framework/benchmarks/instantiation_validation_benchmark.py
diff options
context:
space:
mode:
authoruser <user@TRAFCLASS-PACKET1.fuel.local>2016-03-15 07:35:29 -0400
committerJörgen Karlsson <jorgen.w.karlsson@ericsson.com>2016-03-22 13:53:43 +0000
commitf90f8ca7fc28589cc2e741ebd015b4b971e3180b (patch)
tree991b5ad0bb24c6f56d2aeed7be0ff4fd6d067909 /yardstick/vTC/apexlake/experimental_framework/benchmarks/instantiation_validation_benchmark.py
parent3051e176ebe8391baea4428270fdc10ecf10aec5 (diff)
Support for port_security extension
Change-Id: I5c513eb4024a3cd35c27e3ba6b9ace92af278432 Signed-off-by: user <user@TRAFCLASS-PACKET1.fuel.local> (cherry picked from commit 224c6b9e8e21c1d445cf7f0e506d1e5ace1f9042)
Diffstat (limited to 'yardstick/vTC/apexlake/experimental_framework/benchmarks/instantiation_validation_benchmark.py')
-rw-r--r--yardstick/vTC/apexlake/experimental_framework/benchmarks/instantiation_validation_benchmark.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/yardstick/vTC/apexlake/experimental_framework/benchmarks/instantiation_validation_benchmark.py b/yardstick/vTC/apexlake/experimental_framework/benchmarks/instantiation_validation_benchmark.py
index c85aff5a9..320becae5 100644
--- a/yardstick/vTC/apexlake/experimental_framework/benchmarks/instantiation_validation_benchmark.py
+++ b/yardstick/vTC/apexlake/experimental_framework/benchmarks/instantiation_validation_benchmark.py
@@ -179,7 +179,12 @@ class InstantiationValidationBenchmark(base.BenchmarkBaseClass):
self.params[VLAN_RECEIVER]
# An IP address is required for the interface to receive a multicast
# flow. The specific address is not important
- command += ' 10.254.254.254 up'
+ command += ' 10.254.254.254 up netmask 255.255.255.248'
+ common.run_command(command)
+
+ command = "sudo ifconfig "
+ command += self.interface_name + "." + self.params[VLAN_RECEIVER]
+ command += " promisc"
common.run_command(command)
# configure smcroute
@@ -193,6 +198,7 @@ class InstantiationValidationBenchmark(base.BenchmarkBaseClass):
# run smcroute on the interface
command = 'sudo smcroute -d'
common.run_command(command)
+ time.sleep(3)
# Start the packet checker
current_dir = os.path.dirname(os.path.realpath(__file__))