Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. 1. Help you view commit history from the command line, one line at a time.
  2. 2. Symbolic link tetration pointing to a directory location /usr/share/ansible/module_utils/network/tetration
  3. 3. a. from network_config_manager import ConfigManager - import module ConfigManger from a standard python library
  4. b. device = "somerouter.company.net" - assign a value to variable device, should be spaces around operator and new line at end of file
  5. c. creds = {'user' = 'smithjoe', 'pass' = 'pass'} = assign a python dictionary data structure to variable creds, whitespaces missing around operators and comma between items
  6. d. configmgr = ConfigManager(creds, device) = Assign imported (cached) module ConfigManager and pass args creds and device
  7. e. configmgr.load_running() - run function load_running() that is defined in ConfigManager
  8. 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.
  9. g. configmgr.apply() - Run function apply() as defined in ConfigManager
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement