<s> """<STR_LIT>""" <EOL> from struct import pack <EOL> from struct import unpack <EOL> from exabgp . bgp . message . update . attribute . community . extended import ExtendedCommunity <EOL> @ ExtendedCommunity . register <EOL> class L2Info ( ExtendedCommunity ) : <EOL> COMMUNITY_TYPE = <NUM_LIT> <EOL> COMMUNITY_SUBTYPE = <NUM_LIT> <EOL> __slots__ = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> def __init__ ( self , encaps , control , mtu , reserved , community = None ) : <EOL> self . encaps = encaps <EOL> self . control = control <EOL> self . mtu = mtu <EOL> self . reserved = reserved <EOL> ExtendedCommunity . __init__ ( <EOL> self , <EOL> community if community is not None else pack ( <EOL> "<STR_LIT>" , <EOL> self . _subtype ( ) , <EOL> encaps , control , <EOL> mtu , reserved <EOL> ) <EOL> ) <EOL> def __repr__ ( self ) : <EOL> return "<STR_LIT>" % ( self . encaps , self . control , self . mtu , self . reserved ) <EOL> @ staticmethod <EOL> def unpack ( data ) : <EOL> encaps , control , mtu , reserved = unpack ( '<STR_LIT>' , data [ <NUM_LIT:2> : <NUM_LIT:8> ] ) <EOL> return L2Info ( encaps , control , mtu , reserved , data [ : <NUM_LIT:8> ] ) </s>
