Terraform Scripts to Provision L2 VLANs and High Availability (HA)

HA switchover is considerably faster and more reliable on OCI using L2. The Terraform Scripts from Oracle provide support for both L3 as well as L2 Networking, based on customer environment. The user can choose to deploy the SBC with the new L2 Networking support, or continue using the previous L3 Networking.

This section addresses script deployment considerations for provisioning the SBC for layer 2 VLANs and HA.

To comply with L2/L3 configuration requirements, set the values of the input variables create_media_subnets and create_media_vlans to true to enable Subnet Creation and VLAN Creation for Media Interfaces respectively.

When you set the VCN option create_media_vlans to true, the system creates the following objects for later configuration:

  • sbc_vlan_media_s0p0
  • sbc_vlan_media_s1p0
  • sbc_vlan_media_s0p1
  • sbc_vlan_media_s1p1

Conversely, when you set the VCN option create_media_subnets to true, the system creates the following objects for later configuration:

  • sbc_subnet_media_s0p0
  • sbc_subnet_media_s1p0
  • sbc_subnet_media_s0p1
  • sbc_subnet_media_s1p1

If configuring for Layer 2 VLANs, consider configuration of the following VCN stack parameters:

Variable Name Type Default Value Required Notes
create_media_subnets boolean true Y Performs subnet creation for media interfaces
create_media_vlans boolean true Y Performs subnet creation for VLAN interfaces
vlan_cidr_media_s0p0 string 10.1.13.0/24 Y CIDR value for s0p0 VLAN
vlan_cidr_media_s1p0 string 10.1.14.0/24 Y CIDR value for s1p0 VLAN
vlan_cidr_media_s0p1 string 10.1.15.0/24 Y CIDR value for s0p1 VLAN
vlan_cidr_media_s1p1 string 10.1.16.0/24 Y CIDR value for s1p1 VLAN

Choose whether to have Layer-2 or Layer-3 Networking for the SBC Deployment. Accordingly, set the value of the use_layer2_networking input variable:

  • If choosing Layer-2 Networking, use_layer2_networking = true
  • If choosing Layer-3 Networking, use_layer2_networking = false

When you set the SBC option use_layer2_networking to true, the system creates the following:

  • An option to select s0p0/s1p0/s0p1/s1p1 Media VLANs
  • An option to enter IP for s0p0/s1p0/s0p1/s1p1 Media VLANs (primary node IP) for Standalone SBC
  • An option to enter primary node and secondary node IPs for s0p0/s1p0/s0p1/s1p1 Media VLANs for HA Pair
  • An option to create multiple VIPs for s0p0/s1p0/s0p1/s1p1 Media VLANs for HA Pair
  • Public IP for the s0p0/s1p0/s0p1/s1p1 Primary Node IP of Standalone SBC
  • Public IP for the s0p0/s1p0/s0p1/s1p1 Virtual IP of HA Pair

Note:

You cannot use OCI Resource Manager to deploy the SBC Stack with Layer 2 Networking. You must use only Terraform CLI, when choosing Layer 2 Networking for SBC Stack configuration.

Note:

If you are configuring HA manually with the GUI (without Terraform), you must configure the redundancy-config options manually.

If you are configuring HA using Terraform Scripts (CLI or Resource Manager), you do not need to configure the redundancy-config options. The Terraform Scripts take care of this internally.

If configuring for Layer 2 VLANs, consider configuration of the following SBC stack parameters:

Variable Name Type Default Value Required Notes
use_layer2_networking boolean false Y

Enable Layer-2 Networking (VLANs) for media interfaces.

If false, enable Layer-3 Networking (Subnets)

s0p0_vlan_id string N OCID for s0p0 VLAN
s1p0_vlan_id string N OCID for s1p0 VLAN
s0p1_vlan_id string N OCID for s0p1 VLAN
s1p1_vlan_id string N OCID for s1p1 VLAN

The image below depicts the VLAN Details dialog for the successfully created s0p0 VLAN.

This image depicts the VLAN Details dialog for the successfully created s0p0 VLAN.