From 1f242ba5974060758240d1728b9e74153352357b Mon Sep 17 00:00:00 2001 From: lare <lare@lare.cc> Date: Sun, 26 Jan 2025 16:08:27 +0100 Subject: [PATCH] nodes: use ASN instead of asn in peerings.update() --- nodes/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nodes/main.py b/nodes/main.py index 4de9e68..7dde7e6 100644 --- a/nodes/main.py +++ b/nodes/main.py @@ -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 @@ -404,4 +404,4 @@ def main(): if __name__ == "__main__": - main() \ No newline at end of file + main()