Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Verification and Testing

Follow these steps to verify and test the Juniper Apstra RedHat OpenShift Integration.
Note:

Ensure the EDA rulebook activation is running in the aap namespace, the Automation Controller is accessible, and the Apstra blueprint is deployed with the correct name matching apstra_blueprint_name in vars/main.yml file.

Sample YAML files are available at https://github.com/Juniper/eda-apstra-project/tree/main/tests.

Expected AAP Job Sequence

  1. See Table 1 for information on the expected AAP job sequence.

    Table 1: Expected AAP Job Sequence
    Step OpenShift Object Applied AAP Job Template Triggered Expected Result
    1 SR-IOV Node Policies (none — no EDA trigger) Policies synced across nodes
    2 Project (with type=eda label) create-vrf Routing Zone created in Apstra
    3 SriovNetwork (with type=eda label) create-vnet Virtual Network created in Apstra
    4 Deployment/Pod (on SR-IOV network) create-connectivity-template Connectivity Template created and node port mapped

Create a Project (Routing Zone/VRF)

The Project object must carry the type=eda label and an apstra.juniper.net/vrf annotation listing the VRF name(s) to create in Apstra.

Verify that the create-vrf job is triggered and succeeds in Automation Controller, and that the Routing Zone appears in Apstra under the configured blueprint.

Create SR-IOV Networks (Virtual Networks/VNETS)

Each SR-IOV Network must carry the type=eda label, the pfname label (physical function interface name), and an apstra.juniper.net/vnet annotation.

Deploy SR-IOV Workloads (Connectivity Templates)

Deploy pods or deployments that request SR-IOV resources. The deployment must:

  • Carry type=eda label and apstra.juniper.net/ep annotation
  • Request the correct SR-IOV resource via openshift.io/<resourceName>
  • Use nodeSelector to pin pods to a node where the interface has an LLDP neighbor on an Apstra-managed leaf switch

Important: Before you deploy, verify that the target node's SR-IOV interface has LLDP neighbors:

If the interface shows no LLDP neighbors, select a different node or interface. Deploying on an interface with no LLDP neighbors will cause the create-connectivity-template job to fail.

Tip: If your cluster has some worker nodes without LLDP neighbors on Apstra-managed leaf switches, add a nodeSelector under spec to pin the pod to a known-good node:

Test cross-network connectivity (VNET1 pod to VNET2 pod):

Successful pings confirm that:

  • SR-IOV virtual functions are correctly allocated
  • VLANs and VNETs are configured in the Apstra fabric
  • Connectivity templates are routing traffic between the virtual networks