Uploaded image for project: 'Integration'
  1. Integration
  2. INT-1497

Fix getting local ip address in CSIT setup scripts

XMLWordPrintable

      CSIT setup scripts get local ip address like this:

      HOST_IP=$(ip route get 8.8.8.8 | awk '/8.8.8.8/ {print $NF}') 

      which is currently not platform agnostic as it'll fail on Ubuntu Bionic which adds UID information (newer iproute2 release) at the end of the route entry info:

       8.8.8.8 via x.x.x.x dev eno1 src x.x.x.x uid 1354813838 

            bgrzybowski bgrzybowski
            bgrzybowski bgrzybowski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: