nodes: use ASN instead of asn in peerings.update()

This commit is contained in:
lare 2025-01-26 16:08:27 +01:00
parent d34136b42f
commit 1f242ba597

View file

@ -227,8 +227,8 @@ 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):
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
try:
if not asn in self.peerings:
return False, 404