Differences between revisions 3 and 4
Revision 3 as of 2022-04-01 11:16:53
Size: 625
Editor: PieterSmit
Comment:
Revision 4 as of 2022-04-01 11:21:53
Size: 729
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
   * setup python virtual env {{{
     python3 -m venv venv
     source venv/bin/activate
     }}}

Dev/github-ntc-templates

  • github - github-ntc-templates
    • Clone template repo to local.
    • command line mapped through templates/index
  • setup python virtual env

         python3 -m venv venv
         source venv/bin/activate
  • test new raw and yaml
    • install python yaml lib

      pip3 install ruamel.yaml
      pip3 install textfsm
    • test under test

      $ fb=tests/cisco_nxos/show_ip_arp_detail/cisco_nxos_show_ip_arp_detail ; python3 development_scripts.py -c ${fb}.raw && cat ${fb}.yml

Errors and fix's

  • Error  ModuleNotFoundError: No module named 'ruamel' 

    • Fix  python -m pip install ruamel.yaml 

    • Fix  python -m pip install textfsm 

Dev/github-ntc-templates (last edited 2023-06-29 07:32:45 by PieterSmit)