This shows you the differences between two versions of the page.
| scripting:python_class [2024/06/21 19:12] – created jotasandoku | scripting: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, | def __init__(self, | ||