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 可编程网络自动化
使用
NAPALM
433
如果正确安装了
NAPALM Ansible
模块,则也可以使用
ansible-doc
实用工具查看更多的
NAPALM
模块示例。
ntc@ntc:~$ ansible-doc napalm_install_config
# 省略输出
ntc@ntc:~$ ansible-doc napalm_get_facts
# 省略输出
如先前所述,本节并未介绍
NAPALM YANG
集成。也有一些相关的
Ansible
模块,不过已
经超出了本书的范畴。
B.3.2
 在
Salt
中使用
NAPALM
NAPALM
集成而言,
Salt
Ansible
略有不同,第
9
章所展示的关于
Salt
的所有内容中
就已经用到了
NAP
ALM
NAPALM
原生集成了
Salt
,是使用
Salt
管理网络设备最流行的网络驱动程序。
下面是一些集成示例,更多细节可以参考第
9
章的
Salt
部分。
NAPALM
有专门的代理
minion
集成。以下是示例配置。
proxy:
proxytype: napalm
driver: nxos
fqdn: nxos-spine1.dc.amers
username: ntc
password: ntc123
每个
NAPALM getter
都会映射到一个或多个特定的
Salt
执行模块,这些模块用于从设备中
检索信息。
minion ID
vmx1
的设备中检索
NTP
统计信息。
$ sudo salt vmx1 ntp.stats
# 省略输出
minion ID
vmx1
的设备中检索活跃的
BGP ...
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