nodes: use ASN instead of asn in peerings.update()
This commit is contained in:
parent
d34136b42f
commit
1f242ba597
1 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
main()
|
||||
|
|
Loading…
Add table
Reference in a new issue