<s> """<STR_LIT>""" <EOL> from exabgp . protocol . family import AFI <EOL> from exabgp . protocol . ip import IP <EOL> from exabgp . bgp . message . update . attribute import NextHopSelf <EOL> from exabgp . bgp . message . update . nlri import VPLS <EOL> from exabgp . bgp . message . update . attribute import Attributes <EOL> from exabgp . rib . change import Change <EOL> def vpls ( tokeniser ) : <EOL> return Change ( <EOL> VPLS ( None , None , None , None , None ) , <EOL> Attributes ( ) <EOL> ) <EOL> def vpls_endpoint ( tokeniser ) : <EOL> number = int ( tokeniser ( ) ) <EOL> if number < <NUM_LIT:0> or number > <NUM_LIT> : <EOL> raise ValueError ( '<STR_LIT>' ) <EOL> return number <EOL> def vpls_size ( tokeniser ) : <EOL> number = int ( tokeniser ( ) ) <EOL> if number < <NUM_LIT:0> or number > <NUM_LIT> : <EOL> raise ValueError ( '<STR_LIT>' ) <EOL> return number <EOL> def vpls_offset ( tokeniser ) : <EOL> number = int ( tokeniser ( ) ) <EOL> if number < <NUM_LIT:0> or number > <NUM_LIT> : <EOL> raise ValueError ( '<STR_LIT>' ) <EOL> return number <EOL> def vpls_base ( tokeniser ) : <EOL> number = int ( tokeniser ( ) ) <EOL> if number < <NUM_LIT:0> or number > <NUM_LIT> : <EOL> raise ValueError ( '<STR_LIT>' ) <EOL> return number <EOL> def next_hop ( tokeniser ) : <EOL> value = tokeniser ( ) <EOL> if value . lower ( ) == '<STR_LIT>' : <EOL> return NextHopSelf ( AFI . ipv4 ) <EOL> return IP . create ( value ) </s>
