HEX
Server: LiteSpeed
System: Linux us-phx-web1284.main-hosting.eu 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: u300739242 (300739242)
PHP: 8.2.30
Disabled: system, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/exabgp/bgp/__pycache__/fsm.cpython-37.pyc
B

RP�e�	�@s dZddlZGdd�de�ZdS)z�
fsm.py

Created by Thomas Mangin on 2010-01-15.
Copyright (c) 2009-2017 Exa Networks. All rights reserved.
License: 3-clause BSD. (See the COPYRIGHT file)
�Nc
@s�eZdZGdd�de�Zed�Zed�Zed�Zed�Zed�Z	ed�Z
eeeeee	e
geeeegeeeegeege	ee	ge
e	e
giZd	d
�Zdd�Z
d
d�Zdd�Zdd�Zdd�ZdS)�FSMc@s�eZdZejddkrdgZdZdZdZdZ	dZ
d	Zed
edede	d
e
dediZe
dd�e��D��Zee�Zdd�Zdd�Zdd�ZdS)z	FSM.STATEr��code������ �IDLE�ACTIVE�CONNECT�OPENSENT�OPENCONFIRM�ESTABLISHEDccs|]\}}||fVqdS)N�)�.0r�namerr�?/opt/alt/python37/lib/python3.7/site-packages/exabgp/bgp/fsm.py�	<genexpr>(szFSM.STATE.<genexpr>cCs$||jkrtd|��t�|�dS)Nzinvalid FSM code %s)�valid�RuntimeError�int�__init__)�selfrrrrr,s
zFSM.STATE.__init__cCs|j�|dt|��S)NzINVALID 0x%s)�names�get�hex)rrrr�__repr__1szFSM.STATE.__repr__cCst|�S)N)�repr)rrrr�__str__4szFSM.STATE.__str__N)�__name__�
__module__�__qualname__�sys�version_info�	__slots__rrr
rrrr�dict�items�codes�listrrrr rrrr�STATEs&r+rrrrr	r
cCs||_||_dS)N)�peer�state)rr,r-rrrrHszFSM.__init__cCs.||_|jjjdr*|jjj�|jj|�|S)N�fsm)r-r,Zneighbor�apiZreactorZ	processesr.)rr-rrr�changeLsz
FSM.changecCs
|j|kS)N)r-)r�otherrrr�__eq__Tsz
FSM.__eq__cCs|�|�S)N)r2)rr1rrr�__neq__WszFSM.__neq__cCs
d|jS)NzFSM state %s)r-)rrrrrZszFSM.__repr__cCs|jj�|jd�S)N�INVALID)r+rrr-)rrrrr]szFSM.nameN)r!r"r#rr+rrr
rrrZ
transitionrr0r2r3rrrrrrrs&#

r)�__doc__r$�objectrrrrr�<module>s