Upgrade to Pro — share decks privately, control downloads, hide ads and more …

network-programmability

KATSUYA
June 28, 2019

 network-programmability

KATSUYA

June 28, 2019
Tweet

More Decks by KATSUYA

Other Decks in Technology

Transcript

  1. Ansible Example code - hosts: iosxr gather_facts: no connection: local

    tasks: - name: configure interface settings iosxr_config: lines: - router static - router static vrf SHIMA - router static vrf SHIMA address-family ipv4 unicast ίʔυ͕ಡΈ΍͍͢ͷ͸ ࠾༻ཧ༝ʹͳΔ ωοτϫʔΫϓϩάϥϚϏϦςΟษڧձ
  2. • Python Automated Test Systems ͷུ • pyATS ͷϑϨʔϜϫʔΫͷ্Ͱಈ͘ػೳϥΠϒϥϦ •

    configͷparse͕༏ल(ͪΌΜͱ੔ܗͯ͘͠ΕΔ) • recordingػೳ͕༏ल • YAML + Pythonͷߏ੒ ωοτϫʔΫϓϩάϥϚϏϦςΟษڧձ
  3. pyats_genie Example Run Results (pyats_genie) shimakatsuyanoMacBook-puro:workshop shimakatsuya$ python test.py [2019-06-18

    14:53:29,022] +++ nx-osv-1 logfile /tmp/nx-osv-1- cli-20190618T145329021.log +++ [2019-06-18 14:53:29,022] +++ Unicon plugin nxos +++ -------------------------------------------------------------------------------- Hostname: nx-osv-1 Software Version: NX-OS 7.3(0)D1(1) BGP Instance VRF Neighbor State -------------- ------- ---------- ----------- default default 10.1.1.1 established Total # of Active Neighbors: 1 -------------------------------------------------------------------------------- ៉ྷʹ੔ܗ͢Δͷ͕ͱͯ΋ָ ωοτϫʔΫϓϩάϥϚϏϦςΟษڧձ
  4. ඞཁͳࣄલ஌ࣝͷ গͳ͞ ˓ ˚ ˚ ͓खܰ͞ ˚ ˓ ˓ υΩϡϝϯτͷ

    ॆ࣮ੑ ˕ ˚ ˚ πʔϧͷศར͞ ˓ ˓ ˕ ωοτϫʔΫϓϩάϥϚϏϦςΟษڧձ