This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# basic system setup | |
sudo apt -y update | |
sudo apt -y upgrade | |
sudo apt -y install curl | |
sudo apt -y install git | |
# dependencies needed to be able to install libyang | |
sudo apt install -y gcc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
from pprint import pprint as pp | |
class Node: | |
name = "" | |
def __init__(self, name=None): | |
self.name = name | |
def __repr__(self) -> str: | |
return f"<Node: {self.name}>" |