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
570
instudystyle
KATSUYA
August 02, 2019
Tweet
Share
More Decks by KATSUYA
See All by KATSUYA
短期間で大量の仮想ルーターの展開するお作法
katsuya414
4
3k
歴代の運営委員と上位入賞者が語る ICTSC攻略
katsuya414
0
1.3k
networkctf
katsuya414
1
800
network-programmability
katsuya414
3
2.6k
Other Decks in Technology
See All in Technology
ハイテク休憩
sat
PRO
2
150
C++26 エラー性動作
faithandbrave
2
730
TSKaigi 2024 の登壇から広がったコミュニティ活動について
tsukuha
0
160
re:Invent 2024 Innovation Talks(NET201)で語られた大切なこと
shotashiratori
0
310
Opcodeを読んでいたら何故かphp-srcを読んでいた話
murashotaro
0
200
LINE Developersプロダクト(LIFF/LINE Login)におけるフロントエンド開発
lycorptech_jp
PRO
0
120
どちらを使う?GitHub or Azure DevOps Ver. 24H2
kkamegawa
0
740
非機能品質を作り込むための実践アーキテクチャ
knih
3
1.2k
統計データで2024年の クラウド・インフラ動向を眺める
ysknsid25
2
840
多領域インシデントマネジメントへの挑戦:ハードウェアとソフトウェアの融合が生む課題/Challenge to multidisciplinary incident management: Issues created by the fusion of hardware and software
bitkey
PRO
2
100
[Ruby] Develop a Morse Code Learning Gem & Beep from Strings
oguressive
1
150
ガバメントクラウドのセキュリティ対策事例について
fujisawaryohei
0
530
Featured
See All Featured
YesSQL, Process and Tooling at Scale
rocio
169
14k
Building Applications with DynamoDB
mza
91
6.1k
A Tale of Four Properties
chriscoyier
157
23k
Keith and Marios Guide to Fast Websites
keithpitt
410
22k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
The Cult of Friendly URLs
andyhume
78
6.1k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Mobile First: as difficult as doing things right
swwweet
222
9k
The Pragmatic Product Professional
lauravandoore
32
6.3k
Visualization
eitanlees
146
15k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
170
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ͷՃػೳͱ͔ࡉ͔͘νΣοΫͯ͠ ͓͍ͨํ͕͍͍Ͷ
͋Γ͕ͱ͏͍͟͝·ͨ͠