[backend] change default values in Peeringmanager.exists()
the large if clause there would return false if the requested peering doesn't have bgp_mp and bgp_enh
This commit is contained in:
parent
376571c410
commit
067803081d
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ class PeeringManager:
|
|||
except KeyError:
|
||||
return 0
|
||||
|
||||
def exists(self, asn, node, mnt=None, wg_key=None, endpoint=None, ipv6ll=None, ipv4=None, ipv6=None, bgp_mp=True, bgp_enh=True):
|
||||
def exists(self, asn, node, mnt=None, wg_key=None, endpoint=None, ipv6ll=None, ipv4=None, ipv6=None, bgp_mp=None, bgp_enh=None):
|
||||
"""checks if a peerings with specific data already exists"""
|
||||
# check if mnt is specified, already exists in the database and if that mnt has the specified ASn -> if not: return False
|
||||
if mnt and not (mnt in self.peerings["mntner"] and asn in self.peerings["mntner"][mnt]):
|
||||
|
|
Loading…
Add table
Reference in a new issue