[backend] longer timeout for node communication and retrying with other if add/update fails with 409/404

This commit is contained in:
lare 2024-09-29 20:09:45 +02:00
parent b3337a5b3d
commit d34136b42f
2 changed files with 27 additions and 18 deletions

View file

@ -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: