Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Network Programming and Automation Essentials

You're reading from   Network Programming and Automation Essentials Get started in the realm of network automation using Python and Go

Arrow left icon
Product type Paperback
Published in Apr 2023
Publisher Packt
ISBN-13 9781803233666
Length 296 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Claus Töpke Claus Töpke
Author Profile Icon Claus Töpke
Claus Töpke
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. Part 1: Foundations for Network Automation
2. Chapter 1: Network Basics for Development FREE CHAPTER 3. Chapter 2: Programmable Networks 4. Chapter 3: Accessing the Network 5. Chapter 4: Working with Network Configurations and Definitions 6. Part 2: Network Programming for Automation
7. Chapter 5: Dos and Don’ts for Network Programming 8. Chapter 6: Using Go and Python for Network Programming 9. Chapter 7: Error Handling and Logging 10. Chapter 8: Scaling Your Code 11. Part 3: Testing, Hands-On, and Going Forward
12. Chapter 9: Network Code Testing Framework 13. Chapter 10: Hands-On and Going Forward 14. Index 15. Other Books You May Enjoy

Conventions used

There are a number of text conventions used throughout this book.

Code in text: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “Both modes use the same Linux device driver (accessible via /dev/net/tun), just with a different flag. The flag to use TAP mode is IFF_TAP, whereas the flag to use TUN is IFF_TUN.”

A block of code is set as follows:

from paramiko import SSHClient
client = SSHClient()
client.connect('10.1.1.1', username='user', password='pw')

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

import unittest
import mock
from paramiko import SSHClient
class TestSSHClient(unittest.TestCase):
    @mock.patch('paramiko.SSHClient.connect')
    def test_connect(self, mock_connect):

Any command-line input or output is written as follows:

claus@dev:~$ sudo ip tuntap add dev tap0 mode tap
claus@dev:~$ sudo ip link set tap0 up
claus@dev:~$ ip link show tap0

Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “Having included E5, S5, and L5, the Clos network will have now 50 connections.”

Tips or important notes

Appear like this.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime