Skip to content

Commit

Permalink
fix ifconfig data matching in info::guest_networking
Browse files Browse the repository at this point in the history
The description field uses '/' as separator since 52a504e.

close #471
  • Loading branch information
galdor committed Aug 2, 2022
1 parent 714475f commit 0c29132
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vm-info
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,9 @@ info::guest_networking(){
if [ "${_RUN}" = "1" ]; then
config::get "_switch" "network${_num}_switch"

_int=$(ifconfig | grep -B1 "vmnet-${_name}-${_num}-" | head -n1 | cut -d' ' -f1,6)
_int=$(ifconfig | grep -B1 "vmnet/${_name}/${_num}/" | head -n1 | cut -d' ' -f1,6)
_id=${_int%%:*}
_tag=$(ifconfig | grep "vmnet-${_name}-${_num}-" | cut -d' ' -f2)
_tag=$(ifconfig | grep "vmnet/${_name}/${_num}/" | cut -d' ' -f2)

info::__find_bridge "_bridge" "${_id}"

Expand Down

0 comments on commit 0c29132

Please sign in to comment.