Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
instudystyle
KATSUYA
August 02, 2019
Technology
1
390
instudystyle
KATSUYA
August 02, 2019
Tweet
Share
More Decks by KATSUYA
See All by KATSUYA
短期間で大量の仮想ルーターの展開するお作法
katsuya414
4
2.6k
歴代の運営委員と上位入賞者が語る ICTSC攻略
katsuya414
0
620
networkctf
katsuya414
1
730
network-programmability
katsuya414
3
2.4k
Other Decks in Technology
See All in Technology
LINSTOR — это как Kubernetes, но для блочных устройств
flant
0
2.7k
psql, my favorite tool!
nuko_yokohama
1
180
やってみたLT会 Fleet Managerのススメ
yukiiiiikuma
PRO
0
400
Getting Started in Product Management
thatjeffsmith
0
100
Step-by-Step MLOps and Microsoft Products
shisyu_gaku
1
550
ソフトウェアアーキテクチャの基礎: Software Architecture in a Nutshell
snoozer05
28
8.8k
cobra は便利になっている
nwiizo
0
140
インフラのテストに VPC Reachability Analyzer は外せないという話
nulabinc
PRO
2
710
疎ベクトル検索と密ベクトル検索: 第68回 Machine Learning 15minutes! Broadcast
keyakkie
1
250
大声で伝えたい!定時に帰る方法
sbtechnight
0
230
データをコネコネ!メール配信用データ生成の仕組み
kappezoro
0
120
Amazon Comprehendで始める感情分析
46ta
0
190
Featured
See All Featured
JazzCon 2018 Closing Keynote - Leadership for the Reluctant Leader
reverentgeek
173
8.6k
Fantastic passwords and where to find them - at NoRuKo
philnash
27
1.6k
GraphQLとの向き合い方2022年版
quramy
16
8.4k
Robots, Beer and Maslow
schacon
152
7.1k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_i
25
15k
Why Our Code Smells
bkeepers
PRO
324
55k
WebSockets: Embracing the real-time Web
robhawkes
57
5.6k
Visualization
eitanlees
125
12k
Thoughts on Productivity
jonyablonski
44
2.4k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
226
15k
Build The Right Thing And Hit Your Dates
maggiecrowley
19
1.2k
Fontdeck: Realign not Redesign
paulrobertlloyd
73
4.1k
Transcript
ઈରʹλϝʹͳΒͳ͍ AnsibleͰͷࣗಈԽ উஉ(@katu7414) JOTUVEZTUZMF
ࣗݾհ Network Automation https://github.com/Katsuya414 SR,Batfish,Ansible,PyATS,Genie JANOG44 ελοϑ NETCONओ࠵ऀ !LBUV !2
JOTUVEZTUZMF
Γ͕झຯ
͍ͬͯΔࣗಈԽπʔϧ JOTUVEZTUZMF
• configมߋ͢ΔͳΒҰ൪ศར • ֶशίετ͕͍ͷͰνʔϜϝϯόʔʹਁಁ ͍͢͠ • ίʔυ͕ಡΈ͍͢ͱݴ͏ͷࣗಈԽ͢Δʹ ͋ͨͬͯ࠷ॏཁͳཁૉͷҰͭ • ϚϧνϕϯμʔରԠ͋Γ͕͍ͨ
JOTUVEZTUZMF
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 ίʔυ͕ಡΈ͍͢ͷ ࠾༻ཧ༝ʹͳΔ JOTUVEZTUZMF
AnsibleͰconfigೖ͢Δͱ͖ͷ Γͬͯ͠Ͳ͏ͬͯΔͷʁ JOTUVEZTUZMF
৭ʑํ๏͋Γͦ͏͚ͩͲ ͔ͤͬ͘ͳͷͰAnsible2.7͔Β ରԠͨ͠ํ๏ͰΔ JOTUVEZTUZMF
commit࣌ͷϥϕϧͰղܾ JOTUVEZTUZMF
Ansible code - hosts: iosxr gather_facts: no connection: local tasks:
- name: configure interface settings iosxr_config: lines: - ip address 172.31.1.1 255.255.255.0 - no shutdown parents: interface gi0/1/0/0 label: abcdefg ίʔυ͕ಡΈ͍͢ͷ ࠾༻ཧ༝ʹͳΔ JOTUVEZTUZMF
Show xrv#show configuration commit list Fri Jun 7 10:41:28.293 JST
SNo. Label/ID User Line Client Time Stamp ~~~~ ~~~~~~~~ ~~~~ ~~~~ ~~~~~~ ~~~~~~~~~~ 1 abcdefg root vty0: CLI Fri Jun 7 10 JOTUVEZTUZMF
Result xrv#rollback configuration abcdefg JOTUVEZTUZMF
·ͱΊ • ࣄखॱॻ͕࡞Γ͘͢ͳͬͨ • ͓લͦͷίʔυ్͕தͰࢭ·ͬͨΒͲ͏͢Δ ͷʁ͓͡͞ΜʹউͯΔΑ͏ʹͳͬͨ • AnsibleͷՃػೳͱ͔ࡉ͔͘νΣοΫͯ͠ ͓͍ͨํ͕͍͍Ͷ
͋Γ͕ͱ͏͍͟͝·ͨ͠