Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Help you view commit history from the command line, one line at a time.
- 2. Symbolic link tetration pointing to a directory location /usr/share/ansible/module_utils/network/tetration
- 3. a. from network_config_manager import ConfigManager - import module ConfigManger from a standard python library
- b. device = "somerouter.company.net" - assign a value to variable device, should be spaces around operator and new line at end of file
- c. creds = {'user' = 'smithjoe', 'pass' = 'pass'} = assign a python dictionary data structure to variable creds, whitespaces missing around operators and comma between items
- d. configmgr = ConfigManager(creds, device) = Assign imported (cached) module ConfigManager and pass args creds and device
- e. configmgr.load_running() - run function load_running() that is defined in ConfigManager
- f. configmgr.modify(interface='gi0/0', spanning_tree.bpdugard=True) - run function modify and pass in args defintion for interface, spanning_tree. These are defined in code.
- g. configmgr.apply() - Run function apply() as defined in ConfigManager
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement