Shared
Shared steps for DDos Mitigation workflows.
build_ias_peer_map(partner)
Gather BGP peer information from partner's IAS GWS routers.
Collects router endpoints and BGP peer addresses (IPv4/IPv6) for all IAS GWS subscriptions belonging to the partner. Only GWS flavor IAS is included as DDoS mitigation requires GWS infrastructure.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
partner
|
UUIDstr
|
Partner UUID |
required |
Returns:
| Type | Description |
|---|---|
State
|
State containing: |
State
|
|
State
|
|
Source code in gso/workflows/ddos_mitigation/shared.py
check_other_active_mitigations(subscription_id)
Check if other DDoS mitigation subscriptions are active.
This is used during termination to determine whether we should restore the exit upstream port's export policy or skip that step because other active mitigations still exist.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
subscription_id
|
UUID
|
The DDoS mitigation subscription ID being terminated |
required |
Returns:
| Type | Description |
|---|---|
State
|
State containing: |
State
|
|
Source code in gso/workflows/ddos_mitigation/shared.py
check_prefix_list_ownership(subscription, partner_name, ias_subscription_endpoints)
Check if the provided prefix lists belong to the selected partner.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
subscription
|
dict
|
DDoS mitigation subscription dict |
required |
partner_name
|
str
|
Name of the partner |
required |
ias_subscription_endpoints
|
list[str]
|
List of router FQDNs |
required |
Returns:
| Type | Description |
|---|---|
State
|
LSO state with playbook name, inventory, and extra vars |