rename to incusbr0
This commit is contained in:
parent
f75f8d1bf7
commit
27e0dc6ccf
@ -132,8 +132,8 @@ if ! command -v incus >/dev/null 2>&1; then
|
|||||||
sleep 1
|
sleep 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if incus network list --format csv -q --project default | grep -q lxdbr0; then
|
if incus network list --format csv -q --project default | grep -q incusbr0; then
|
||||||
incus network delete lxdbr0 --project default
|
incus network delete incusbr0 --project default
|
||||||
sleep 1
|
sleep 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -176,7 +176,7 @@ config:
|
|||||||
images.auto_update_interval: 15
|
images.auto_update_interval: 15
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
- name: lxdbr0
|
- name: incusbr0
|
||||||
description: "ss-config,${DATA_PLANE_MACVLAN_INTERFACE:-error}"
|
description: "ss-config,${DATA_PLANE_MACVLAN_INTERFACE:-error}"
|
||||||
type: bridge
|
type: bridge
|
||||||
config:
|
config:
|
||||||
|
@ -54,8 +54,8 @@ if [ "$PURGE_INCUS" = true ]; then
|
|||||||
incus profile device remove default eth0
|
incus profile device remove default eth0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if incus network list --format csv -q --project default | grep -q lxdbr0; then
|
if incus network list --format csv -q --project default | grep -q incusbr0; then
|
||||||
incus network delete lxdbr0 --project default
|
incus network delete incusbr0 --project default
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if incus network list --format csv -q --project default | grep -q lxdbr1; then
|
if incus network list --format csv -q --project default | grep -q lxdbr1; then
|
||||||
|
@ -272,7 +272,7 @@ if [ "$VIRTUAL_MACHINE" = base ]; then
|
|||||||
cat >> "$YAML_PATH" <<EOF
|
cat >> "$YAML_PATH" <<EOF
|
||||||
enp6s0:
|
enp6s0:
|
||||||
name: enp6s0
|
name: enp6s0
|
||||||
network: lxdbr0
|
network: incusbr0
|
||||||
type: nic
|
type: nic
|
||||||
name: ${FILENAME}
|
name: ${FILENAME}
|
||||||
EOF
|
EOF
|
||||||
|
@ -325,8 +325,8 @@ for VIRTUAL_MACHINE in www btcpayserver lnplayserver; do
|
|||||||
|
|
||||||
# Goal is to get the macvlan interface.
|
# Goal is to get the macvlan interface.
|
||||||
LXD_SS_CONFIG_LINE=
|
LXD_SS_CONFIG_LINE=
|
||||||
if incus network list --format csv --project default | grep lxdbr0 | grep -q "ss-config"; then
|
if incus network list --format csv --project default | grep incusbr0 | grep -q "ss-config"; then
|
||||||
LXD_SS_CONFIG_LINE="$(incus network list --format csv --project default | grep lxdbr0 | grep ss-config)"
|
LXD_SS_CONFIG_LINE="$(incus network list --format csv --project default | grep incusbr0 | grep ss-config)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$LXD_SS_CONFIG_LINE" ]; then
|
if [ -z "$LXD_SS_CONFIG_LINE" ]; then
|
||||||
|
@ -69,7 +69,7 @@ storage_pools:
|
|||||||
driver: zfs
|
driver: zfs
|
||||||
profiles:
|
profiles:
|
||||||
- config: {}
|
- config: {}
|
||||||
description: ""
|
description: "Default profile for ss-mgmt."
|
||||||
devices:
|
devices:
|
||||||
enp5s0:
|
enp5s0:
|
||||||
name: enp5s0
|
name: enp5s0
|
||||||
|
@ -69,8 +69,8 @@ if [ "$PURGE_INCUS" = true ]; then
|
|||||||
incus profile device remove default enp5s0
|
incus profile device remove default enp5s0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if incus network list --project default | grep -q lxdbr0; then
|
if incus network list --project default | grep -q incusbr0; then
|
||||||
incus network delete lxdbr0
|
incus network delete incusbr0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# this file contains the BASE_IMAGE_NAME
|
# this file contains the BASE_IMAGE_NAME
|
||||||
@ -83,6 +83,4 @@ if [ "$PURGE_INCUS" = true ]; then
|
|||||||
incus storage delete sovereign-stack
|
incus storage delete sovereign-stack
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sudo apt purge incus
|
|
||||||
|
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue
Block a user