Exemplo n.º 1
0
    def __init__(self):

        self.interfaces = interfaces.Interfaces()
        self.ipv4_routes = addresses.Ipv4Routes()
        self.ipv6_routes = addresses.Ipv6Routes()
        print("name servers not implemented yet")
        # self.name_servers =
        # self.applications = applications
        # To find all IPv4 machines on an ethernet, use arp -a     See ipv4_neighbors.txt

        # To find all IPv6 machines on an ethernet, use ip -6 neigh show

        self.networks = networks
        self.name = name
Exemplo n.º 2
0
    def __init__(self, json_tags, json_interfaces):
        self.interfaces = interfaces.Interfaces(json_interfaces)

        self.tags = json.load(open(json_tags))
        self.make_tags()