1
1

rename to incusbr0

This commit is contained in:
Derek Smith 2023-09-23 10:26:51 -06:00
parent f75f8d1bf7
commit 27e0dc6ccf
Signed by: farscapian
GPG Key ID: B443E530A14E1C90
6 changed files with 11 additions and 13 deletions

View File

@ -132,8 +132,8 @@ if ! command -v incus >/dev/null 2>&1; then
sleep 1
fi
if incus network list --format csv -q --project default | grep -q lxdbr0; then
incus network delete lxdbr0 --project default
if incus network list --format csv -q --project default | grep -q incusbr0; then
incus network delete incusbr0 --project default
sleep 1
fi
@ -176,7 +176,7 @@ config:
images.auto_update_interval: 15
networks:
- name: lxdbr0
- name: incusbr0
description: "ss-config,${DATA_PLANE_MACVLAN_INTERFACE:-error}"
type: bridge
config:

View File

@ -54,8 +54,8 @@ if [ "$PURGE_INCUS" = true ]; then
incus profile device remove default eth0
fi
if incus network list --format csv -q --project default | grep -q lxdbr0; then
incus network delete lxdbr0 --project default
if incus network list --format csv -q --project default | grep -q incusbr0; then
incus network delete incusbr0 --project default
fi
if incus network list --format csv -q --project default | grep -q lxdbr1; then

View File

@ -272,7 +272,7 @@ if [ "$VIRTUAL_MACHINE" = base ]; then
cat >> "$YAML_PATH" <<EOF
enp6s0:
name: enp6s0
network: lxdbr0
network: incusbr0
type: nic
name: ${FILENAME}
EOF

View File

@ -325,8 +325,8 @@ for VIRTUAL_MACHINE in www btcpayserver lnplayserver; do
# Goal is to get the macvlan interface.
LXD_SS_CONFIG_LINE=
if incus network list --format csv --project default | grep lxdbr0 | grep -q "ss-config"; then
LXD_SS_CONFIG_LINE="$(incus network list --format csv --project default | grep lxdbr0 | grep ss-config)"
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 incusbr0 | grep ss-config)"
fi
if [ -z "$LXD_SS_CONFIG_LINE" ]; then

View File

@ -69,7 +69,7 @@ storage_pools:
driver: zfs
profiles:
- config: {}
description: ""
description: "Default profile for ss-mgmt."
devices:
enp5s0:
name: enp5s0

View File

@ -69,8 +69,8 @@ if [ "$PURGE_INCUS" = true ]; then
incus profile device remove default enp5s0
fi
if incus network list --project default | grep -q lxdbr0; then
incus network delete lxdbr0
if incus network list --project default | grep -q incusbr0; then
incus network delete incusbr0
fi
# this file contains the BASE_IMAGE_NAME
@ -83,6 +83,4 @@ if [ "$PURGE_INCUS" = true ]; then
incus storage delete sovereign-stack
fi
sudo apt purge incus
fi