Skip to content

Commit

Permalink
M #-: oneke: Get fallback GW/DNS via OneFlow interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
sk4zuzu committed Jan 26, 2024
1 parent 56f0730 commit b351fb5
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ opennebula_version: >-
6.2, 6.3, 6.4, 6.6, 6.8
opennebula_template:
context:
SERVICE_ID: "$SERVICE_ID"
FALLBACK_GW: "$FALLBACK_GW"
FALLBACK_DNS: "$FALLBACK_DNS"
GROW_FS: "/"
NETWORK: "YES"
TOKEN: "YES"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ opennebula_template:
NIC = [
NAME = "NIC0",
NETWORK_ID = "$Private" ]
FALLBACK_GW = "${vnf.TEMPLATE.CONTEXT.ETH1_IP}"
FALLBACK_DNS = "${vnf.TEMPLATE.CONTEXT.ETH1_IP}"
ONEAPP_VROUTER_ETH0_VIP0 = "$ONEAPP_VROUTER_ETH0_VIP0"
ONEAPP_VROUTER_ETH1_VIP0 = "$ONEAPP_VROUTER_ETH1_VIP0"
ONEAPP_RKE2_SUPERVISOR_EP = "$ONEAPP_RKE2_SUPERVISOR_EP"
Expand Down Expand Up @@ -112,6 +114,8 @@ opennebula_template:
NIC = [
NAME = "NIC0",
NETWORK_ID = "$Private" ]
FALLBACK_GW = "${vnf.TEMPLATE.CONTEXT.ETH1_IP}"
FALLBACK_DNS = "${vnf.TEMPLATE.CONTEXT.ETH1_IP}"
ONEAPP_VROUTER_ETH0_VIP0 = "$ONEAPP_VROUTER_ETH0_VIP0"
ONEAPP_VROUTER_ETH1_VIP0 = "$ONEAPP_VROUTER_ETH1_VIP0"
ONEAPP_RKE2_SUPERVISOR_EP = "$ONEAPP_RKE2_SUPERVISOR_EP"
Expand All @@ -138,6 +142,8 @@ opennebula_template:
NIC = [
NAME = "NIC0",
NETWORK_ID = "$Private" ]
FALLBACK_GW = "${vnf.TEMPLATE.CONTEXT.ETH1_IP}"
FALLBACK_DNS = "${vnf.TEMPLATE.CONTEXT.ETH1_IP}"
ONEAPP_VROUTER_ETH0_VIP0 = "$ONEAPP_VROUTER_ETH0_VIP0"
ONEAPP_VROUTER_ETH1_VIP0 = "$ONEAPP_VROUTER_ETH1_VIP0"
ONEAPP_RKE2_SUPERVISOR_EP = "$ONEAPP_RKE2_SUPERVISOR_EP"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ opennebula_version: >-
6.2, 6.3, 6.4, 6.6, 6.8
opennebula_template:
context:
SERVICE_ID: "$SERVICE_ID"
ONEAPP_VNF_KEEPALIVED_ETH0_SKIP: "YES" # do *NOT* use eth0 for VRRP traffic
NETWORK: "YES"
TOKEN: "YES"
Expand Down Expand Up @@ -64,7 +65,8 @@ opennebula_template:
logo: router.png
images:
- name: oneke_vnf
url: https://d24fmfybwxpuhu.cloudfront.net/service_VRouter-6.8.1-1.20240119.qcow2
#url: https://d24fmfybwxpuhu.cloudfront.net/service_VRouter-6.8.1-1.20240119.qcow2
url: http://192.168.150.1/service_VRouter.qcow2
type: OS
dev_prefix: vd
driver: qcow2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ opennebula_version: >-
6.2, 6.3, 6.4, 6.6, 6.8
images:
- name: oneke_os
url: https://d24fmfybwxpuhu.cloudfront.net/service_OneKE-6.8.1-1.20240119.qcow2
#url: https://d24fmfybwxpuhu.cloudfront.net/service_OneKE-6.8.1-1.20240119.qcow2
url: http://192.168.150.1/service_OneKE.qcow2
type: OS
dev_prefix: vd
driver: qcow2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ opennebula_version: >-
6.2, 6.3, 6.4, 6.6, 6.8
opennebula_template:
context:
SERVICE_ID: "$SERVICE_ID"
FALLBACK_GW: "$FALLBACK_GW"
FALLBACK_DNS: "$FALLBACK_DNS"
GROW_FS: "/ /var/lib/longhorn"
NETWORK: "YES"
TOKEN: "YES"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ opennebula_version: >-
6.2, 6.3, 6.4, 6.6, 6.8
opennebula_template:
context:
SERVICE_ID: "$SERVICE_ID"
FALLBACK_GW: "$FALLBACK_GW"
FALLBACK_DNS: "$FALLBACK_DNS"
GROW_FS: "/"
NETWORK: "YES"
TOKEN: "YES"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ opennebula_version: >-
6.2, 6.3, 6.4, 6.6, 6.8
images:
- name: oneke_os
url: https://d24fmfybwxpuhu.cloudfront.net/service_OneKEa-6.8.1-1.20240119.qcow2
#url: https://d24fmfybwxpuhu.cloudfront.net/service_OneKEa-6.8.1-1.20240119.qcow2
url: http://192.168.150.1/service_OneKEa.qcow2
type: OS
dev_prefix: vd
driver: qcow2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ opennebula_template:
NIC = [
NAME = "NIC0",
NETWORK_ID = "$Private" ]
FALLBACK_GW = "${vnf.TEMPLATE.CONTEXT.ETH1_IP}"
FALLBACK_DNS = "${vnf.TEMPLATE.CONTEXT.ETH1_IP}"
ONEAPP_VROUTER_ETH0_VIP0 = "$ONEAPP_VROUTER_ETH0_VIP0"
ONEAPP_VROUTER_ETH1_VIP0 = "$ONEAPP_VROUTER_ETH1_VIP0"
ONEAPP_RKE2_SUPERVISOR_EP = "$ONEAPP_RKE2_SUPERVISOR_EP"
Expand Down Expand Up @@ -112,6 +114,8 @@ opennebula_template:
NIC = [
NAME = "NIC0",
NETWORK_ID = "$Private" ]
FALLBACK_GW = "${vnf.TEMPLATE.CONTEXT.ETH1_IP}"
FALLBACK_DNS = "${vnf.TEMPLATE.CONTEXT.ETH1_IP}"
ONEAPP_VROUTER_ETH0_VIP0 = "$ONEAPP_VROUTER_ETH0_VIP0"
ONEAPP_VROUTER_ETH1_VIP0 = "$ONEAPP_VROUTER_ETH1_VIP0"
ONEAPP_RKE2_SUPERVISOR_EP = "$ONEAPP_RKE2_SUPERVISOR_EP"
Expand All @@ -138,6 +142,8 @@ opennebula_template:
NIC = [
NAME = "NIC0",
NETWORK_ID = "$Private" ]
FALLBACK_GW = "${vnf.TEMPLATE.CONTEXT.ETH1_IP}"
FALLBACK_DNS = "${vnf.TEMPLATE.CONTEXT.ETH1_IP}"
ONEAPP_VROUTER_ETH0_VIP0 = "$ONEAPP_VROUTER_ETH0_VIP0"
ONEAPP_VROUTER_ETH1_VIP0 = "$ONEAPP_VROUTER_ETH1_VIP0"
ONEAPP_RKE2_SUPERVISOR_EP = "$ONEAPP_RKE2_SUPERVISOR_EP"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ opennebula_version: >-
6.2, 6.3, 6.4, 6.6, 6.8
opennebula_template:
context:
SERVICE_ID: "$SERVICE_ID"
FALLBACK_GW: "$FALLBACK_GW"
FALLBACK_DNS: "$FALLBACK_DNS"
GROW_FS: "/ /var/lib/longhorn"
NETWORK: "YES"
TOKEN: "YES"
Expand Down

0 comments on commit b351fb5

Please sign in to comment.