diff options
author | Abhijit Sinha <abhijit.sinha@intel.com> | 2018-08-02 12:35:02 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-08-02 12:35:02 +0000 |
commit | af0a6a7593534849626000632b2262cf5fe76db7 (patch) | |
tree | 69a611af4bfc317345fd4c9b9c8ff4dd206e340e /yardstick/common | |
parent | 0b7647a5a6c85a8a1762ec4482004107989c8550 (diff) | |
parent | 6e0e8fde5efc85e57cf4021991ec2d17298eaf3d (diff) |
Merge "Replace assert statements in PipelineRules"
Diffstat (limited to 'yardstick/common')
-rw-r--r-- | yardstick/common/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/yardstick/common/utils.py b/yardstick/common/utils.py index 068271c66..c019cd264 100644 --- a/yardstick/common/utils.py +++ b/yardstick/common/utils.py @@ -287,6 +287,10 @@ def mac_address_to_hex_list(mac): return octets +def make_ipv4_address(ip_addr): + return ipaddress.IPv4Address(six.text_type(ip_addr)) + + def safe_ip_address(ip_addr): """ get ip address version v6 or v4 """ try: |