OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
exabgp
/
bgp
/
message
/
open
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/16/2023 12:55:54 PM
rwxr-xr-x
📄
__init__.py
3.36 KB
03/13/2021 04:30:48 PM
rw-r--r--
📁
__pycache__
-
03/16/2023 12:55:54 PM
rwxr-xr-x
📄
asn.py
1.27 KB
03/13/2021 04:30:48 PM
rw-r--r--
📁
capability
-
03/16/2023 12:55:54 PM
rwxr-xr-x
📄
holdtime.py
480 bytes
03/13/2021 04:30:48 PM
rw-r--r--
📄
routerid.py
712 bytes
03/13/2021 04:30:48 PM
rw-r--r--
📄
version.py
374 bytes
03/13/2021 04:30:48 PM
rw-r--r--
Editing: routerid.py
Close
# encoding: utf-8 """ routerid.py Created by Thomas Mangin on 2012-07-17. Copyright (c) 2009-2017 Exa Networks. All rights reserved. License: 3-clause BSD. (See the COPYRIGHT file) """ from exabgp.protocol.family import AFI from exabgp.protocol.ip import IPv4 from exabgp.util import ordinal # ===================================================================== RouterID # class RouterID(IPv4): def __init__(self, ip, packed=None): if IPv4.toafi(ip) != AFI.ipv4: raise ValueError('wrong address family') IPv4.__init__(self, ip, packed) @classmethod def unpack(cls, data): # pylint: disable=W0221 return cls('.'.join(str(ordinal(_)) for _ in data), data)