User Tools

Site Tools


scripting:python_class

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

scripting:python_class [2024/06/21 19:12] – created jotasandokuscripting:python_class [2024/06/21 19:16] (current) jotasandoku
Line 1: Line 1:
- 
- 
 ``` ```
 ====== Python Classes for Network Automation: A Practical Guide ====== ====== Python Classes for Network Automation: A Practical Guide ======
Line 14: Line 12:
 Here's a simple example of a class: Here's a simple example of a class:
  
-```python+``` 
 +python
 class NetworkDevice: class NetworkDevice:
     def __init__(self, name, ip_address):     def __init__(self, name, ip_address):
scripting/python_class.1718997148.txt.gz · Last modified: by jotasandoku