Skip to Content
可编程网络自动化
book

可编程网络自动化

by Jason Edelman, Scott S. Lowe, Matt Oswalt
January 2023
Intermediate to advanced
458 pages
14h 16m
Chinese
Posts & Telecom Press
Content preview from 可编程网络自动化
372
10
CI
很容易应用于网络自动化(接下来会介绍),但是
CD
就要多些考量了。本章余下部分
可能会模糊
CI
CD
在网络自动化方面的界限,所以请记住以下两件事。
我要部署
什么
我要把它部署到
什么地方
/
谁那里
以上是要解决的重要问题,因为这决定了你的交付模式。例如,某些网络团队可能会使用
内部
Python
应用程序执行所有自动化操作
。这非常简单,因为他们本质上就是基础设施团
队中的软件开发工坊(
software development shop
)。
还要考虑典型的网络自动化示例:将某种配置工件(比如一些
Y
AML
文件)放入
Git
库,在使用
Ansible
等工具调用它之前
,让
CI/CD
管道对其进行一些基本的健全性检查,
使得生产环境中的网络设备发生实际和即时的改动。对有些组织来说,这也许可行,但就
像软件开发团队将每个软件补丁立即部署到生产环境中,而这并未必总是我们想要的。
也许可以考虑将这些变更持续交付到“类生产”环境(“
staging
environment
,每当企业
要求把这些变更最终部署到生产环境中时,就可以将其从类生产环境(希望已经在其中经
过了测试)中移出。在撰写本章时,许多网络厂商已经得知我们希望能够提供其平台的虚
拟映像的诉求,所以这要比以前容易多了。
尽管所有这些虚拟设备都非常适合测试自动化,但实际上并非所有虚拟设备
都能够承载生产环境网络流量。对此,请参考厂商的文档说明。
还得考虑回滚过程。你是否定期获取“生产环境”
Git
仓库中的配置并使用其覆盖当前的
“生产环境”配置,或者至少是对两者进行比较 ...
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

弱监督学习实用指南

弱监督学习实用指南

Wee Hyong Tok, Amit Bahree, Senja Filipi
Python和NLTK实现自然语言处理

Python和NLTK实现自然语言处理

Posts & Telecom Press, Nitin Hardeniya
Go程序设计语言

Go程序设计语言

艾伦A. A.多诺万, 布莱恩W. 柯尼汉
Python机器学习案例精解

Python机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu

Publisher Resources

ISBN: 9787115606181