
. `dirname $0`/inc_functions.sh

function _exec(){
    echo ... [$2] command: $1
    eval $1
    # echo rc=$?
    echo
}

# _exec ls "testrun"


_exec "_getinet4" "all ip v4 addresses"
_exec "_getinet4 | _ipf private" "private range"


_exec "_getinet4 | _ipf public" "public ips"

_exec "_getinet4 | _ipf public | _ipf physical" "public physical addresses"
_exec "_getinet4 | _ipf public | _ipf virtual"  "public virtual addresses"

echo ----



_exec "_getIpFrontend" "get frontend address"
_exec "_getIpVirtual" "get virtual address"
_exec "_getIpPrivate" "get private address"

_exec "_getIp"  "get main IP"
