Skip to content
Snippets Groups Projects
Commit 440c34e4 authored by Recolic's avatar Recolic :house_with_garden:
Browse files

.

parent b27c3d03
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ function plugin_before_vnet_creat () { ...@@ -19,7 +19,7 @@ function plugin_before_vnet_creat () {
if [ "$vnet_altaddr" != 0 ]; then if [ "$vnet_altaddr" != 0 ]; then
[ "$vnet_ipv6" = 1 ] && echo_warn "++ Conflict: vnet_altaddr conflicts with vnet_ipv6." && exit 1 [ "$vnet_ipv6" = 1 ] && echo_warn "++ Conflict: vnet_altaddr conflicts with vnet_ipv6." && exit 1
[[ " ${vnet_create_xtra_arg[@]} " =~ " --subnets " ]] && echo_warn "++ Conflict: please include 'altaddr' plugin before 'secured'" [[ " ${vnet_create_xtra_arg[@]} " =~ " --subnets " ]] && echo_warn "++ Conflict: please include 'altaddr' plugin before 'secured'" && exit 1
vnet_iprange=10.$vnet_altaddr.0.0 vnet_iprange=10.$vnet_altaddr.0.0
echo_info "++ alt_addr: vnet IP range $vnet_iprange" echo_info "++ alt_addr: vnet IP range $vnet_iprange"
......
...@@ -57,7 +57,8 @@ function plugin_before_vnet_creat () { ...@@ -57,7 +57,8 @@ function plugin_before_vnet_creat () {
if [ "$secured_version" -ge 2504 ]; then if [ "$secured_version" -ge 2504 ]; then
# Block default-outbound-access. # Block default-outbound-access.
# We have to parse vnet args, remove subnet config, and compose a json one. # We have to parse vnet args, remove subnet config, and compose a json one.
local subnets_json="$(vnet_args_parse_helper "${vnet_create_xtra_arg[@]}")" vnet_args_parse_helper "${vnet_create_xtra_arg[@]}" > /tmp/.azvm-tmp-subnets-json || exit 1
local subnets_json="$(cat /tmp/.azvm-tmp-subnets-json)"
vnet_create_xtra_arg=("${vnet_args_parse_remaining[@]}") vnet_create_xtra_arg=("${vnet_args_parse_remaining[@]}")
vnet_create_xtra_arg+=(--subnets "$subnets_json") vnet_create_xtra_arg+=(--subnets "$subnets_json")
explicit_vnet_create=1 explicit_vnet_create=1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment