<s> import logging <EOL> from networking_cisco . plugins . cisco . cfg_agent . device_drivers . asr1k import ( <EOL> asr1k_routing_driver as asr_driver ) <EOL> from networking_cisco . plugins . cisco . cfg_agent . service_helpers . routing_svc_helper import RouterInfo <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> logging . basicConfig ( level = logging . DEBUG ) <EOL> device_params = { '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : <NUM_LIT> , <EOL> '<STR_LIT>' : <NUM_LIT:30> , <EOL> "<STR_LIT>" : { <EOL> '<STR_LIT:username>' : "<STR_LIT>" , <EOL> '<STR_LIT:password>' : '<STR_LIT>' <EOL> } } <EOL> router = { '<STR_LIT:id>' : '<STR_LIT>' , <EOL> '<STR_LIT:name>' : '<STR_LIT>' } <EOL> ri = RouterInfo ( "<STR_LIT>" , router ) <EOL> port = { '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : u'<STR_LIT>' , <EOL> '<STR_LIT>' : <NUM_LIT> , <EOL> '<STR_LIT>' : '<STR_LIT>' } <EOL> } <EOL> driver = asr_driver . ASR1kRoutingDriver ( ** device_params ) <EOL> if driver . _get_connection ( ) : <EOL> logging . info ( '<STR_LIT>' ) <EOL> driver . router_added ( ri ) <EOL> driver . internal_network_added ( ri , port ) <EOL> driver . internal_network_removed ( ri , port ) <EOL> driver . router_removed ( ri ) </s>
