@@ -147,8 +147,8 @@ def edit(
147
147
account_id : str ,
148
148
prefix_id : str ,
149
149
asn_prepend_count : int | NotGiven = NOT_GIVEN ,
150
+ auto_advertise_withdraw : bool | NotGiven = NOT_GIVEN ,
150
151
on_demand : bgp_prefix_edit_params .OnDemand | NotGiven = NOT_GIVEN ,
151
- withdraw_if_no_route : bool | NotGiven = NOT_GIVEN ,
152
152
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
153
153
# The extra values given here take precedence over values defined on the client or passed to this method.
154
154
extra_headers : Headers | None = None ,
@@ -169,9 +169,10 @@ def edit(
169
169
170
170
asn_prepend_count: Number of times to prepend the Cloudflare ASN to the BGP AS-Path attribute
171
171
172
- withdraw_if_no_route: Controls whether the BGP prefix is automatically withdrawn when prefix is
173
- withdrawn from Magic routing table (for Magic Transit customers using Direct
174
- CNI)
172
+ auto_advertise_withdraw: Determines if Cloudflare advertises a BYOIP BGP prefix even when there is no
173
+ matching BGP prefix in the Magic routing table. When true, Cloudflare will
174
+ automatically withdraw the BGP prefix when there are no matching BGP routes, and
175
+ will resume advertising when there is at least one matching BGP route.
175
176
176
177
extra_headers: Send extra headers
177
178
@@ -192,8 +193,8 @@ def edit(
192
193
body = maybe_transform (
193
194
{
194
195
"asn_prepend_count" : asn_prepend_count ,
196
+ "auto_advertise_withdraw" : auto_advertise_withdraw ,
195
197
"on_demand" : on_demand ,
196
- "withdraw_if_no_route" : withdraw_if_no_route ,
197
198
},
198
199
bgp_prefix_edit_params .BGPPrefixEditParams ,
199
200
),
@@ -379,8 +380,8 @@ async def edit(
379
380
account_id : str ,
380
381
prefix_id : str ,
381
382
asn_prepend_count : int | NotGiven = NOT_GIVEN ,
383
+ auto_advertise_withdraw : bool | NotGiven = NOT_GIVEN ,
382
384
on_demand : bgp_prefix_edit_params .OnDemand | NotGiven = NOT_GIVEN ,
383
- withdraw_if_no_route : bool | NotGiven = NOT_GIVEN ,
384
385
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
385
386
# The extra values given here take precedence over values defined on the client or passed to this method.
386
387
extra_headers : Headers | None = None ,
@@ -401,9 +402,10 @@ async def edit(
401
402
402
403
asn_prepend_count: Number of times to prepend the Cloudflare ASN to the BGP AS-Path attribute
403
404
404
- withdraw_if_no_route: Controls whether the BGP prefix is automatically withdrawn when prefix is
405
- withdrawn from Magic routing table (for Magic Transit customers using Direct
406
- CNI)
405
+ auto_advertise_withdraw: Determines if Cloudflare advertises a BYOIP BGP prefix even when there is no
406
+ matching BGP prefix in the Magic routing table. When true, Cloudflare will
407
+ automatically withdraw the BGP prefix when there are no matching BGP routes, and
408
+ will resume advertising when there is at least one matching BGP route.
407
409
408
410
extra_headers: Send extra headers
409
411
@@ -424,8 +426,8 @@ async def edit(
424
426
body = await async_maybe_transform (
425
427
{
426
428
"asn_prepend_count" : asn_prepend_count ,
429
+ "auto_advertise_withdraw" : auto_advertise_withdraw ,
427
430
"on_demand" : on_demand ,
428
- "withdraw_if_no_route" : withdraw_if_no_route ,
429
431
},
430
432
bgp_prefix_edit_params .BGPPrefixEditParams ,
431
433
),
0 commit comments