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: “In the device management section, search for the WayneEnt_FW1
firewall.”
A block of code is set as follows:
devices_url = "https://demo.nautobot.com/api/dcim/devices/"# adds ams01-leaf-11 to the location AMS01 r = session.post(devices_url, data=json.dumps(payload)) # the UUID of the device will be saved for the next API call device_id = r.json()["id"]
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
payload = { "name": "ams01-leaf-11", "device_type": "74cf95a8-4233-46b9-a740-fba4f5dc88d3", "status": "9f38bab4-4b47-4e77-b50c-fda62817b2db", "role": "869267d8-7d75-4bd3-8a9e-5e6adcf200f6", "tenant": "1f7fbd07-111a-4091-81d0-f34db26d961d", "platform": "f48fd9e2-45c5-4c2f-aa54-28964edb3e1e", "location": "9e39051b-e968-4016-b0cf-63a5607375de" }
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: “Click on the Interfaces tab; if one does not exist already, you can click Add Components | Add Interface.”
Tips or important notes
Appear like this.