Skip to Content
ネットワーク自動化とプログラマビリティ ―次世代ネットワークエンジニアのためのスキルセット
book

ネットワーク自動化とプログラマビリティ ―次世代ネットワークエンジニアのためのスキルセット

by Jason Edelman, Scott S. Lowe, Matt Oswalt, 土屋 太二, 牧野 聡
February 2022
Intermediate to advanced
632 pages
10h 1m
Japanese
O'Reilly Japan, Inc.
Content preview from ネットワーク自動化とプログラマビリティ ―次世代ネットワークエンジニアのためのスキルセット

8章Gitによるソースコード管理

本書では、読者のスキルセットの中に新たにネットワーク自動化を加えるべく、「4章 ネットワークとPython」ではスクリプト言語としてPythonを紹介し、「6章 ネットワーク設定のテンプレート」ではテンプレート言語としてJinjaについて解説してきました。PythonプログラムやJinjaテンプレートなどの利用が増えてくると、これらの作成物(スクリプトやテンプレート、その他の自動化ツールなど)の管理が大きな課題になってきます。特に、これら作成物の変更履歴を管理することには非常に大きな価値があります。理由について後ほど解説します。

この章ではソースコード管理ツールについて紹介します。ソースコード管理ツールを使うことで、ネットワーク自動化の開発プロセスで利用する作成物を管理します。具体的にはソースコード管理ツールを使うことで、従来のようなファイル名の末尾に日時を追加するといった面倒で間違いやすい手作業が必要なくなり、さらにはファイルを誤って削除や上書きをしてしまうといったミスもなくすことができます。

まずはソースコード管理という概念について紹介します。ソースコード管理の一般的な概念を明らかにした上で、具体的な例としてGitと呼ばれるソースコード管理ツールを取り上げます。

8.1 ソースコード管理のユースケース

ソースコード管理とは、簡単に言うとファイルの変更履歴を管理するための仕組みです。バージョン管理あるいはリビジョン管理とも呼ばれます。具体的なユースケースとしては以下のようなものが考えられます。

  • ソフトウェア開発プロジェクトに所属する開発者は、作成したプログラムをソースコード管理ツールを使うことで管理でき、変更履歴を追跡することができます。これが最も一般的なユースケースであり、ソースコード管理と聞けば多くの人々はこのような状況を思い浮かべるのではないでしょうか。 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

ハイパフォーマンス ブラウザネットワーキング ―ネットワークアプリケーションのためのパフォーマンス最適化

ハイパフォーマンス ブラウザネットワーキング ―ネットワークアプリケーションのためのパフォーマンス最適化

Ilya Grigorik, 和田 祐一郎/株式会社プログラミングシステム社
サイトリライアビリティワークブック ―SREの実践方法

サイトリライアビリティワークブック ―SREの実践方法

Betsy Beyer, Niall Richard Murphy, David K. Rensin, Kent Kawahara, Stephen Thorne, 澤田 武男, 関根 達夫, 細川 一茂, 矢吹 大輔, 玉川 竜司

Publisher Resources

ISBN: 9784873119816Other