Skip to content

Bgp Routing Policy

BGP Routing Policy is a list of rules containing match criteria and action to be applied. These rules help contol routes which are imported or exported to BGP peers.

ToolDescription
f5xc-api-network-bgp-routing-policy-createCreate BGP Routing Policy.
f5xc-api-network-bgp-routing-policy-getGET BGP Routing Policy.
f5xc-api-network-bgp-routing-policy-listList BGP Routing Policy.
f5xc-api-network-bgp-routing-policy-updateReplace BGP Routing Policy.
f5xc-api-network-bgp-routing-policy-deleteDELETE BGP Routing Policy.
ParameterDescriptionExample
metadata.namespaceNamespace-
nameName-
namespaceNamespace-
metadata.nameName-
ParameterDescriptionExample
response_formatThe format in which the configuration object is to be fetched. This could be for example-
label_filterA LabelSelectorType expression that every item in list response will satisfy.-
report_fieldsThe report_fields parameter-
report_status_fieldsThe report_status_fields parameter-

This resource includes mutually exclusive configuration options:

OptionDescriptionRecommended
spec.rules[].action.aggregate-
spec.rules[].action.allow-
spec.rules[].action.as_path-
spec.rules[].action.community-
spec.rules[].action.deny-
spec.rules[].action.local_preference-
spec.rules[].action.metric-
OptionDescriptionRecommended
spec.rules[].match.as_path-
spec.rules[].match.community-
spec.rules[].match.ip_prefixes-
OptionDescriptionRecommended
spec.rules[].match.ip_prefixes.prefixes[].equal_or_longer_than-
spec.rules[].match.ip_prefixes.prefixes[].exact_match-
spec.rules[].match.ip_prefixes.prefixes[].longer_than-

Ask Claude to help you work with Bgp Routing Policy resources:

“Create a bgp-routing-policy named ‘example’ in the ‘production’ namespace”

“List all bgp-routing-policys in the ‘production’ namespace”

“Get details of the bgp-routing-policy named ‘example’ in namespace ‘production‘“

Terminal window
# List resources
curl -X GET "https://${TENANT}.console.ves.volterra.io/api/config/namespaces/${NAMESPACE}/bgp_routing_policys" \
-H "Authorization: APIToken ${F5XC_API_TOKEN}" \
-H "Content-Type: application/json"
# Get specific resource
curl -X GET "https://${TENANT}.console.ves.volterra.io/api/config/namespaces/${NAMESPACE}/bgp_routing_policys/<name>" \
-H "Authorization: APIToken ${F5XC_API_TOKEN}" \
-H "Content-Type: application/json"
# Create resource
curl -X POST "https://${TENANT}.console.ves.volterra.io/api/config/namespaces/${NAMESPACE}/bgp_routing_policys" \
-H "Authorization: APIToken ${F5XC_API_TOKEN}" \
-H "Content-Type: application/json" \
-d @bgp_routing_policy.json
# Delete resource
curl -X DELETE "https://${TENANT}.console.ves.volterra.io/api/config/namespaces/${NAMESPACE}/bgp_routing_policys/<name>" \
-H "Authorization: APIToken ${F5XC_API_TOKEN}"