From acbbcace6940e2e89c9ed0b102fd64da890cf007 Mon Sep 17 00:00:00 2001 From: Al Bowles Date: Wed, 28 Jun 2023 13:24:17 -0500 Subject: [PATCH] Add templates for multivm networking --- templates/etc/sysconfig/network-scripts/ifcfg-br.j2 | 10 ++++++++++ templates/etc/sysconfig/network-scripts/ifcfg-tap.j2 | 7 +++++++ templates/etc/sysconfig/os-autoinst-openvswitch.j2 | 3 +++ 3 files changed, 20 insertions(+) create mode 100644 templates/etc/sysconfig/network-scripts/ifcfg-br.j2 create mode 100644 templates/etc/sysconfig/network-scripts/ifcfg-tap.j2 create mode 100644 templates/etc/sysconfig/os-autoinst-openvswitch.j2 diff --git a/templates/etc/sysconfig/network-scripts/ifcfg-br.j2 b/templates/etc/sysconfig/network-scripts/ifcfg-br.j2 new file mode 100644 index 0000000..b507a85 --- /dev/null +++ b/templates/etc/sysconfig/network-scripts/ifcfg-br.j2 @@ -0,0 +1,10 @@ +DEVICETYPE='ovs' +TYPE='OVSBridge' +BOOTPROTO='static' +IPADDR='172.16.2.2' +NETMASK='255.254.0.0' +DEVICE={{ openqa_multivm_bridge_interface }} +STP=off +ONBOOT='yes' +NAME='{{ openqa_multivm_bridge_interface }}' +HOTPLUG='no' diff --git a/templates/etc/sysconfig/network-scripts/ifcfg-tap.j2 b/templates/etc/sysconfig/network-scripts/ifcfg-tap.j2 new file mode 100644 index 0000000..7b037b4 --- /dev/null +++ b/templates/etc/sysconfig/network-scripts/ifcfg-tap.j2 @@ -0,0 +1,7 @@ +DEVICETYPE='ovs' +TYPE='OVSPort' +OVS_BRIDGE='{{ openqa_multivm_bridge_interface }}' +DEVICE='tap{{ item }}' +ONBOOT='yes' +BOOTPROTO='none' +HOTPLUG='no' diff --git a/templates/etc/sysconfig/os-autoinst-openvswitch.j2 b/templates/etc/sysconfig/os-autoinst-openvswitch.j2 new file mode 100644 index 0000000..ce81e91 --- /dev/null +++ b/templates/etc/sysconfig/os-autoinst-openvswitch.j2 @@ -0,0 +1,3 @@ +OS_AUTOINST_BRIDGE_LOCAL_IP=172.16.2.2 +OS_AUTOINST_BRIDGE_REWRITE_TARGET=172.17.0.0 +OS_AUTOINST_USE_BRIDGE={{ openqa_multivm_bridge_interface }}