Skip to content

Commit

Permalink
adjust get_os_network for config migration
Browse files Browse the repository at this point in the history
related to #6636
  • Loading branch information
julsemaan committed Oct 21, 2021
1 parent 4560ace commit 378723f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/functions/configuration.functions
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ function get_os_netmask() {
}

function get_os_network() {
get_ip_network `get_os_ip_address $1`
ip_cidr=`ip -br -o a show dev $1 | egrep -o '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/[0-9]+' | head -1`
get_ip_network $ip_cidr
}

function get_ip_network() {
Expand Down

0 comments on commit 378723f

Please sign in to comment.