Modified suite setup and Added TC 'Create Multiple VLANs Via IPMI And Verify'
Change-Id: I65ff199cbb4374c46f06f45c7f2a00ffbc47664f
Signed-off-by: Anvesh Kumar Rayankula <anvesr77@in.ibm.com>
diff --git a/lib/bmc_network_utils.py b/lib/bmc_network_utils.py
index f3c6fea..a01ee78 100644
--- a/lib/bmc_network_utils.py
+++ b/lib/bmc_network_utils.py
@@ -30,6 +30,18 @@
return ipaddress.ip_network('0.0.0.0/' + netmask).prefixlen
+def get_netmask_address(prefix_len):
+ r"""
+ Return the netmask address.
+
+ Description of argument(s):
+ prefix_len Prefix length value (e.g. "24", "23", "22", etc.).
+ """
+
+ # IP address netmask format: '0.0.0.0/24'
+ return ipaddress.ip_network('0.0.0.0/' + prefix_len).netmask
+
+
def parse_nping_output(output):
r"""
Parse the output from the nping command and return as a dictionary.