diff --git a/lib/f5_image_prep/os-functions/openstack-network.sh b/lib/f5_image_prep/os-functions/openstack-network.sh index 8f416a5..afabcd0 100755 --- a/lib/f5_image_prep/os-functions/openstack-network.sh +++ b/lib/f5_image_prep/os-functions/openstack-network.sh @@ -50,7 +50,8 @@ function set_iface_value () { # initial chars in a BIGIP version string. We do this # because the name of the managment interface changes # from eth0 to mgmt in version 13. - if (( "$1" >= "13")) + version=$(tmsh show /sys version | grep -i version) + if [ $(perl -le "print (\"\$$version\" =~ /(\d+)\.\d+\.\d+/)") -ge 13 ] then echo mgmt else diff --git a/setup.py b/setup.py index f980ee4..3a36ee1 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,6 @@ # limitations under the License. # -from setuptools import find_packages from setuptools import setup import f5_image_prep @@ -32,4 +31,6 @@ 'Programming Language :: Python', 'Intended Audience :: System Administrators', ], + install_requires=['python-keystoneclient == 1.7.2', + 'python-glanceclient == 1.2.0'] )