Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
instudystyle
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
KATSUYA
August 02, 2019
Technology
1
600
instudystyle
KATSUYA
August 02, 2019
Tweet
Share
More Decks by KATSUYA
See All by KATSUYA
短期間で大量の仮想ルーターの展開するお作法
katsuya414
4
3.1k
歴代の運営委員と上位入賞者が語る ICTSC攻略
katsuya414
0
1.6k
networkctf
katsuya414
1
820
network-programmability
katsuya414
3
2.6k
Other Decks in Technology
See All in Technology
Ruby版 JSXのRuxが気になる
sansantech
PRO
0
150
Digitization部 紹介資料
sansan33
PRO
1
6.8k
インフラエンジニア必見!Kubernetesを用いたクラウドネイティブ設計ポイント大全
daitak
1
360
日本の85%が使う公共SaaSは、どう育ったのか
taketakekaho
1
150
会社紹介資料 / Sansan Company Profile
sansan33
PRO
15
400k
クレジットカード決済基盤を支えるSRE - 厳格な監査とSRE運用の両立 (SRE Kaigi 2026)
capytan
6
2.7k
AIエージェントを開発しよう!-AgentCore活用の勘所-
yukiogawa
0
160
20260208_第66回 コンピュータビジョン勉強会
keiichiito1978
0
130
Bedrock PolicyでAmazon Bedrock Guardrails利用を強制してみた
yuu551
0
220
GSIが複数キー対応したことで、俺達はいったい何が嬉しいのか?
smt7174
3
150
What happened to RubyGems and what can we learn?
mikemcquaid
0
290
~Everything as Codeを諦めない~ 後からCDK
mu7889yoon
3
340
Featured
See All Featured
The agentic SEO stack - context over prompts
schlessera
0
640
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.9k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
60
42k
First, design no harm
axbom
PRO
2
1.1k
HDC tutorial
michielstock
1
380
Writing Fast Ruby
sferik
630
62k
The Spectacular Lies of Maps
axbom
PRO
1
520
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
51
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.4k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
430
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ͷՃػೳͱ͔ࡉ͔͘νΣοΫͯ͠ ͓͍ͨํ͕͍͍Ͷ
͋Γ͕ͱ͏͍͟͝·ͨ͠