# f5networks/f5-cloud-failover-extension architecture

> Architecture diagram of the GitHub repository f5networks/f5-cloud-failover-extension, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/f5networks/f5-cloud-failover-extension
- Repository: https://github.com/f5networks/f5-cloud-failover-extension
- Video tour (about a minute): https://gitdiagram.com/f5networks/f5-cloud-failover-extension/video

## Overview

CFE is an iControl LX extension for BIG-IP that applies declarative configuration and performs L3 failover across AWS, Azure, and GCP. The documented workflow starts with a JSON declaration submitted by REST; on traffic-group failover, BIG-IP runs its active script, which triggers CFE to update cloud networking resources, with failback restoring the designated primary. The provided tree and source excerpts contain no runtime source files, so implementation paths and internal call relationships cannot be verified; relationships shown here are documented in the README.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_config["Configuration"]
  node_declaration["JSON declaration"]
  node_rest["CFE REST API"]
end

subgraph group_runtime["Failover runtime"]
  node_bigip["BIG-IP traffic group"]
  node_active_script["Active script"]
  node_trigger["CFE trigger API"]
  node_cfe["Cloud Failover Extension"]
end

subgraph group_cloud["Cloud operations"]
  node_failover_ips["Failover IPs"]
  node_failover_routes["Failover routes"]
  node_failback["Failback"]
  node_aws["AWS networking"]
  node_azure["Azure networking"]
  node_gcp["GCP networking"]
end

node_operator(("BIG-IP operator"))

node_operator -->|"defines"| node_declaration
node_declaration -->|"submitted by"| node_rest
node_bigip -->|"runs on failover"| node_active_script
node_active_script -->|"calls"| node_trigger
node_rest -->|"configures"| node_cfe
node_trigger -->|"triggers"| node_cfe
node_cfe -->|"updates"| node_failover_ips
node_cfe -->|"updates"| node_failover_routes
node_cfe -->|"supports"| node_failback
node_failover_ips -->|"updates resources"| node_aws
node_failover_ips -->|"updates resources"| node_azure
node_failover_ips -->|"updates resources"| node_gcp
node_failover_routes -->|"updates route tables"| node_aws
node_failover_routes -->|"updates UDRs"| node_azure
node_failover_routes -->|"updates targets"| node_gcp

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_declaration,node_rest toneBlue
class node_bigip,node_active_script,node_trigger,node_cfe toneAmber
class node_failover_ips,node_failover_routes,node_failback,node_aws,node_azure,node_gcp toneMint
class node_operator toneIndigo
```

## Components

### Configuration

- **JSON declaration**
- **CFE REST API**

### Failover runtime

- **BIG-IP traffic group**
- **Active script**
- **CFE trigger API**
- **Cloud Failover Extension**

### Cloud operations

- **Failover IPs**
- **Failover routes**
- **Failback**
- **AWS networking**
- **Azure networking**
- **GCP networking**

### Other components

- **BIG-IP operator**

## Connections

- BIG-IP operator → JSON declaration: defines (evidence: `README.md`)
- JSON declaration → CFE REST API: submitted by (evidence: `README.md`)
- BIG-IP traffic group → Active script: runs on failover (evidence: `README.md`)
- Active script → CFE trigger API: calls (evidence: `README.md`)
- CFE REST API → Cloud Failover Extension: configures (evidence: `README.md`)
- CFE trigger API → Cloud Failover Extension: triggers (evidence: `README.md`)
- Cloud Failover Extension → Failover IPs: updates (evidence: `README.md`)
- Cloud Failover Extension → Failover routes: updates (evidence: `README.md`)
- Cloud Failover Extension → Failback: supports (evidence: `README.md`)
- Failover IPs → AWS networking: updates resources (evidence: `README.md`)
- Failover IPs → Azure networking: updates resources (evidence: `README.md`)
- Failover IPs → GCP networking: updates resources (evidence: `README.md`)
- Failover routes → AWS networking: updates route tables (evidence: `README.md`)
- Failover routes → Azure networking: updates UDRs (evidence: `README.md`)
- Failover routes → GCP networking: updates targets (evidence: `README.md`)
