Skip to content
This repository has been archived by the owner on Jun 27, 2018. It is now read-only.

Accessing Topology

joshreich edited this page Dec 5, 2014 · 6 revisions
class topo_reader(DynamicPolicy):
    """
    Policy that stores the topology
    """
    def __init__(self):
        self.network = None
        super(topo_reader,self).__init__()

    def set_network(self, network):
        self.network = network

    def read_topology(self):
        return self.network.topology

    def __repr__(self):
        return "topo_reader"
Clone this wiki locally