Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore Call NameLoad Num FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If Call AttributeLoad AttributeLoad NameLoad attr attr body Return Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call NameLoad Num attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Call NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad BinOpDiv NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Return Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Num decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpBitAnd NameLoad AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameStore NameLoad body Assign SubscriptStore NameLoad Index TupleLoad NameLoad NameLoad BinOpBitAnd NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str BinOpBitOr BinOpLShift AttributeLoad NameLoad attr Num BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListComp TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr ListComp BinOpMod Str TupleLoad NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore NameStore NameLoad Return ListLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListComp TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr ListComp BinOpMod Str TupleLoad NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore NameStore NameLoad Return BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return BinOpAdd Str Call AttributeLoad Str attr ListComp BinOpMod Str TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore ListComp TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad comprehension TupleStore NameStore NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd Call NameLoad Str SubscriptLoad NameLoad Index Num Call NameLoad Str SubscriptLoad NameLoad Index Num Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return BinOpMod Str Call AttributeLoad Str attr ListComp Call NameLoad NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Call NameLoad Num For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults body Return ListLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults body Return ListLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return ListLoad Call NameLoad Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults Str body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return BinOpMod Str Call NameLoad AttributeLoad NameLoad attr If CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return BinOpMod Str Call NameLoad AttributeLoad NameLoad attr Return BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return ListLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam defaults body If CompareEq NameLoad Num body Return Str If CompareEq NameLoad Num body Return Str Return Str decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad Num Num Assign NameStore Call NameLoad Num Num FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr body If CompareEq NameLoad AttributeLoad NameLoad attr body AugAssignAdd NameStore ListLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body AugAssignAdd NameStore ListLoad Str orelse If CompareEq NameLoad AttributeLoad NameLoad attr body AugAssignAdd NameStore ListLoad Str orelse If CompareEq NameLoad AttributeLoad NameLoad attr body AugAssignAdd NameStore ListLoad Str orelse If CompareEq NameLoad AttributeLoad NameLoad attr body AugAssignAdd NameStore ListLoad BinOpMod Str SubscriptLoad NameLoad Index NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body AugAssignAdd NameStore ListLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body AugAssignAdd NameStore ListLoad Str orelse If CompareIn NameLoad AttributeLoad NameLoad attr body AugAssignAdd NameStore ListLoad BinOpMod Str NameLoad orelse If CompareIn NameLoad AttributeLoad NameLoad attr body AugAssignAdd NameStore ListLoad BinOpMod Str NameLoad orelse AugAssignAdd NameStore ListLoad BinOpMod Str NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If BoolOpOr AttributeLoad NameLoad attr CompareIn Call AttributeLoad AttributeLoad NameLoad attr attr Str Str ListLoad Str Str Str Str Str body Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr TupleLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr If NameLoad body If NameLoad body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad ListComp TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr comprehension TupleStore NameStore NameStore NameLoad orelse Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr Call NameLoad Num NameLoad ListComp TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr comprehension TupleStore NameStore NameStore NameLoad If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr Call NameLoad ListLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr ListComp BinOpMod Str TupleLoad Call NameLoad Num Call NameLoad Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad Return BinOpMod Str TupleLoad Call NameLoad Call NameLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A 
open.py

Created by Thomas Mangin on 2009-11-05.
Copyright (c) 2009-2012 Exa Networks. All rights reserved.
 N/A os N/A socket struct pack bagpipe.exabgp.structure.address AFI SAFI bagpipe.exabgp.structure.asn ASN bagpipe.exabgp.message Message Open N/A Message N/A N/A TYPE N/A chr 1 __init__ N/A N/A self version asn router_id capabilities hold_time N/A N/A N/A N/A self version N/A Version version N/A N/A self asn N/A ASN asn N/A N/A self hold_time N/A HoldTime hold_time N/A N/A self router_id N/A RouterID router_id N/A N/A self capabilities capabilities N/A message N/A N/A self N/A N/A N/A N/A N/A N/A self asn asn4 N/A N/A N/A N/A self _message N/A %s%s%s%s%s N/A N/A N/A N/A self version pack N/A N/A N/A ASN 23456 pack False N/A N/A N/A self hold_time pack N/A N/A N/A self router_id pack N/A N/A N/A self capabilities pack N/A N/A N/A self _message N/A %s%s%s%s%s N/A N/A N/A N/A self version pack N/A N/A N/A self asn pack False N/A N/A N/A self hold_time pack N/A N/A N/A self router_id pack N/A N/A N/A self capabilities pack N/A __str__ N/A N/A self N/A N/A N/A N/A OPEN version=%d asn=%d hold_time=%s router_id=%s capabilities=[%s] N/A N/A self version N/A self asn N/A self hold_time N/A self router_id N/A self capabilities N/A N/A Version N/A int N/A pack N/A N/A self N/A N/A N/A N/A chr self N/A N/A HoldTime N/A int N/A pack N/A N/A self N/A N/A N/A N/A pack !H self N/A keepalive N/A N/A self N/A N/A N/A N/A int N/A self 3 N/A __len__ N/A N/A self N/A N/A N/A 2 N/A N/A RouterID N/A object N/A __init__ N/A N/A self ip N/A N/A N/A N/A self ip ip N/A N/A N/A N/A self raw N/A N/A socket inet_pton N/A socket AF_INET ip N/A N/A N/A N/A socket error N/A N/A N/A ValueError N/A invalid IP address %s N/A str ip N/A afi N/A N/A self N/A N/A N/A N/A AFI ipv4 N/A __len__ N/A N/A self N/A N/A N/A 4 N/A pack N/A N/A self N/A N/A N/A N/A self raw N/A __str__ N/A N/A self N/A N/A N/A N/A self ip N/A __repr__ N/A N/A self N/A N/A N/A N/A str self N/A __eq__ N/A N/A self other N/A N/A N/A N/A N/A self ip N/A other ip N/A N/A Graceful N/A dict N/A N/A TIME_MASK 4095 N/A FLAG_MASK 61440 N/A RESTART_STATE 8 N/A FORWARDING_STATE 128 __init__ N/A N/A self restart_flag restart_time protos N/A N/A N/A N/A N/A dict __init__ self N/A N/A self restart_flag restart_flag N/A N/A self restart_time N/A restart_time N/A Graceful TIME_MASK N/A N/A afi safi family_flag protos N/A N/A N/A self N/A N/A afi safi N/A family_flag N/A Graceful FORWARDING_STATE N/A extract N/A N/A self N/A N/A N/A restart N/A pack !H N/A N/A N/A self restart_flag 12 N/A N/A self restart_time N/A Graceful TIME_MASK N/A families N/A N/A N/A N/A afi pack N/A N/A safi pack N/A chr N/A self N/A N/A afi safi N/A N/A afi safi N/A N/A self keys N/A sfamilies N/A N/A join N/A N/A %s%s%s N/A pafi psafi family N/A N/A pafi psafi family families N/A N/A N/A %s%s N/A restart sfamilies N/A __str__ N/A N/A self N/A N/A N/A families N/A N/A N/A str afi N/A str safi N/A hex N/A self N/A N/A afi safi N/A N/A afi safi N/A N/A self keys N/A sfamilies N/A N/A join N/A N/A %s/%s=%s N/A afi safi family N/A N/A afi safi family families N/A N/A Graceful Restart Flags %s Time %d %s N/A N/A hex N/A self restart_flag N/A self restart_time sfamilies N/A families N/A N/A self N/A N/A N/A N/A N/A self keys N/A N/A MultiProtocol N/A list N/A __str__ N/A N/A self N/A N/A N/A N/A Multiprotocol  N/A N/A join N/A N/A %s %s N/A safi ssafi N/A N/A safi ssafi N/A N/A N/A str afi N/A str safi N/A N/A afi safi self N/A extract N/A N/A self N/A N/A N/A rs N/A N/A v self N/A N/A N/A N/A rs append N/A N/A pack !H N/A v N/A 0 N/A pack !H N/A v N/A 1 N/A rs N/A N/A MultiSession N/A list N/A __str__ N/A N/A self N/A N/A N/A N/A Multisession %s N/A N/A join N/A N/A str capa N/A capa self N/A extract N/A N/A self N/A N/A N/A rs N/A N/A chr 0 N/A v self N/A N/A N/A N/A rs append N/A chr v N/A rs N/A N/A RouteRefresh N/A list N/A __str__ N/A N/A self N/A N/A N/A Route Refresh (unparsed) N/A extract N/A N/A self N/A N/A N/A N/A N/A N/A CiscoRouteRefresh N/A list N/A __str__ N/A N/A self N/A N/A N/A Cisco Route Refresh (unparsed) N/A extract N/A N/A self N/A N/A N/A N/A N/A N/A ASN4 N/A int N/A extract N/A N/A self N/A N/A N/A N/A N/A pack !L self N/A N/A Unknown N/A object N/A __init__ N/A N/A self value raw N/A N/A N/A N/A self value value N/A N/A self raw raw N/A __str__ N/A N/A self N/A N/A N/A N/A N/A self value N/A Capabilities reserved N/A N/A N/A Reserved %s N/A str N/A self value N/A N/A N/A self value N/A Capabilities unassigned N/A N/A N/A Unassigned %s N/A str N/A self value N/A N/A unknown %s %s N/A N/A str N/A self value N/A str N/A self raw N/A extract N/A N/A self N/A N/A N/A N/A N/A N/A Parameter N/A int N/A N/A AUTHENTIFICATION_INFORMATION 1 N/A CAPABILITIES 2 __str__ N/A N/A self N/A N/A N/A N/A self 1 N/A N/A AUTHENTIFICATION INFORMATION N/A N/A self 2 N/A N/A OPTIONAL N/A UNKNOWN N/A N/A Capabilities N/A dict N/A N/A RESERVED 0 N/A MULTIPROTOCOL_EXTENSIONS 1 N/A ROUTE_REFRESH 2 N/A OUTBOUND_ROUTE_FILTERING 3 N/A MULTIPLE_ROUTES 4 N/A EXTENDED_NEXT_HOP 5 N/A GRACEFUL_RESTART 64 N/A FOUR_BYTES_ASN 65 N/A DYNAMIC_CAPABILITY 67 N/A MULTISESSION_BGP_RFC 68 N/A ADD_PATH 69 N/A CISCO_ROUTE_REFRESH 128 N/A MULTISESSION_BGP 131 N/A EXTENDED_MESSAGE -1 N/A unassigned N/A range 70 128 N/A reserved N/A range 128 256 announced N/A N/A self capability N/A N/A N/A N/A N/A self has_key capability N/A __str__ N/A N/A self N/A N/A N/A r N/A N/A key N/A N/A self keys N/A N/A N/A key N/A self MULTIPROTOCOL_EXTENSIONS N/A N/A r N/A N/A str N/A self N/A key N/A N/A N/A key N/A self ROUTE_REFRESH N/A N/A r N/A Route Refresh N/A N/A N/A key N/A self CISCO_ROUTE_REFRESH N/A N/A r N/A Cisco Route Refresh N/A N/A N/A key N/A self GRACEFUL_RESTART N/A N/A r N/A Graceful Restart N/A N/A N/A key N/A self FOUR_BYTES_ASN N/A N/A r N/A N/A 4Bytes AS %d N/A self N/A key N/A N/A N/A key N/A self MULTISESSION_BGP N/A N/A r N/A N/A str N/A self N/A key N/A N/A N/A key N/A self MULTISESSION_BGP_RFC N/A N/A r N/A Multi Session N/A N/A N/A key N/A self reserved N/A N/A r N/A N/A private use capability %d key N/A N/A N/A key N/A self unassigned N/A N/A r N/A N/A unassigned capability %d key N/A N/A r N/A N/A unhandled capability %d key N/A N/A N/A ,  join r N/A default N/A N/A self neighbor restarted N/A N/A N/A graceful N/A neighbor graceful_restart N/A N/A N/A neighbor multisession N/A N/A N/A N/A os environ get MINIMAL_MP 0 N/A 1 yes Yes YES N/A N/A families N/A N/A neighbor families N/A N/A families N/A N/A N/A N/A families append N/A N/A AFI N/A AFI ipv4 N/A SAFI N/A SAFI unicast N/A N/A N/A families append N/A N/A AFI N/A AFI ipv6 N/A SAFI N/A SAFI unicast N/A N/A N/A families append N/A N/A AFI N/A AFI ipv4 N/A SAFI N/A SAFI flow_ipv4 N/A mp N/A MultiProtocol N/A N/A N/A mp extend families N/A N/A self N/A N/A Capabilities MULTIPROTOCOL_EXTENSIONS mp N/A N/A self N/A N/A Capabilities FOUR_BYTES_ASN N/A ASN4 N/A neighbor local_as N/A graceful N/A N/A restarted N/A N/A N/A self N/A N/A Capabilities GRACEFUL_RESTART N/A Graceful N/A Graceful RESTART_STATE graceful N/A N/A afi safi N/A Graceful FORWARDING_STATE N/A N/A afi safi families N/A N/A N/A self N/A N/A Capabilities GRACEFUL_RESTART N/A Graceful 0 graceful N/A N/A afi safi N/A Graceful FORWARDING_STATE N/A N/A afi safi families N/A N/A neighbor multisession N/A N/A N/A self N/A N/A Capabilities MULTISESSION_BGP N/A MultiSession N/A N/A Capabilities MULTIPROTOCOL_EXTENSIONS N/A self N/A pack N/A N/A self N/A N/A N/A rs N/A N/A N/A k capabilities N/A N/A self iteritems N/A N/A capability N/A N/A capabilities extract N/A N/A N/A N/A rs append N/A %s%s%s N/A N/A chr k N/A chr N/A len capability capability N/A parameters N/A N/A join N/A N/A %s%s%s N/A N/A chr 2 N/A chr N/A len r r N/A r rs N/A N/A %s%s N/A N/A chr N/A len parameters parameters N/A N/A