Skip to content

Commit

Permalink
Changes to dynamically handle MGMT IFACE over ETH0 for >= 13
Browse files Browse the repository at this point in the history
Issues:
Fixes F5Networks#65

Problem:
* 13+ will have MGMT interface (as far as we know) over ETH0

Analysis:
* To handle this, a bit of perl was implemented to grab from tmsh output

Tests:
  • Loading branch information
sorensF5 committed Jun 16, 2017
1 parent 630b598 commit aab6576
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/f5_image_prep/os-functions/openstack-network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aab6576

Please sign in to comment.