def make(cls, bgp): offset = ord(bgp[1]) prefix, mask = CIDR.decode(AFI.ipv6, bgp[0] + bgp[2:]) return cls(prefix, mask, offset), bgp[CIDR.size(mask) + 2:]
def make (cls, bgp): offset = ord(bgp[1]) prefix,mask = CIDR.decode(AFI.ipv6,bgp[0]+bgp[2:]) return cls(prefix,mask,offset), bgp[CIDR.size(mask)+2:]
def make(cls, bgp): prefix, mask = CIDR.decode(AFI.ipv4, bgp) return cls(prefix, mask), bgp[CIDR.size(mask) + 1:]
def make (cls, bgp): prefix,mask = CIDR.decode(AFI.ipv4,bgp) return cls(prefix,mask), bgp[CIDR.size(mask)+1:]