[backend] longer timeout for node communication and retrying with other if add/update fails with 409/404
This commit is contained in:
parent
b3337a5b3d
commit
d34136b42f
2 changed files with 27 additions and 18 deletions
|
@ -227,8 +227,7 @@ class PeeringManager:
|
|||
else:
|
||||
return False, ret_code
|
||||
|
||||
def update_peering(self, ASN, wg_key, MNT=NotSpecified, node=NotSpecified, endpoint=NotSpecified, ipv6ll=NotSpecified, ipv4=NotSpecified, ipv6=NotSpecified, bgp_mp=NotSpecified, bgp_enh=NotSpecified):
|
||||
asn = ASN
|
||||
def update_peering(self, asn, wg_key, MNT=NotSpecified, node=NotSpecified, endpoint=NotSpecified, ipv6ll=NotSpecified, ipv4=NotSpecified, ipv6=NotSpecified, bgp_mp=NotSpecified, bgp_enh=NotSpecified):
|
||||
|
||||
try:
|
||||
if not asn in self.peerings:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue