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
KATSUYA
August 02, 2019
Technology
1
590
instudystyle
KATSUYA
August 02, 2019
Tweet
Share
More Decks by KATSUYA
See All by KATSUYA
短期間で大量の仮想ルーターの展開するお作法
katsuya414
4
3.1k
歴代の運営委員と上位入賞者が語る ICTSC攻略
katsuya414
0
1.4k
networkctf
katsuya414
1
800
network-programmability
katsuya414
3
2.6k
Other Decks in Technology
See All in Technology
スタートアップに選択肢を 〜生成AIを活用したセカンダリー事業への挑戦〜
nstock
0
250
shake-upを科学する
rsakata
6
560
CDK Vibe Coding Fes
tomoki10
0
100
PO初心者が考えた ”POらしさ”
nb_rady
0
220
Glacierだからってコストあきらめてない? / JAWS Meet Glacier Cost
taishin
1
170
2025-07-06 QGIS初級ハンズオン「はじめてのQGIS」
kou_kita
0
170
B2C&B2B&社内向けサービスを抱える開発組織におけるサービス価値を最大化するイニシアチブ管理
belongadmin
2
7.3k
「クラウドコスト絶対削減」を支える技術—FinOpsを超えた徹底的なクラウドコスト削減の実践論
delta_tech
4
170
Getting to Know Your Legacy (System) with AI-Driven Software Archeology (WeAreDevelopers World Congress 2025)
feststelltaste
1
160
Zero Data Loss Autonomous Recovery Service サービス概要
oracle4engineer
PRO
2
7.8k
マネジメントって難しい、けどおもしろい / Management is tough, but fun! #em_findy
ar_tama
7
1.1k
ビジネス職が分析も担う事業部制組織でのデータ活用の仕組みづくり / Enabling Data Analytics in Business-Led Divisional Organizations
zaimy
0
130
Featured
See All Featured
Mobile First: as difficult as doing things right
swwweet
223
9.7k
Practical Orchestrator
shlominoach
189
11k
How STYLIGHT went responsive
nonsquared
100
5.6k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.8k
KATA
mclloyd
30
14k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
BBQ
matthewcrist
89
9.7k
Designing for Performance
lara
610
69k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
138
34k
How to Think Like a Performance Engineer
csswizardry
25
1.7k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
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ͷՃػೳͱ͔ࡉ͔͘νΣοΫͯ͠ ͓͍ͨํ͕͍͍Ͷ
͋Γ͕ͱ͏͍͟͝·ͨ͠