Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pick up topology from mininet when firing up a new instance #47

Open
cinohpa opened this issue Oct 5, 2012 · 1 comment
Open

Pick up topology from mininet when firing up a new instance #47

cinohpa opened this issue Oct 5, 2012 · 1 comment
Assignees

Comments

@cinohpa
Copy link
Contributor

cinohpa commented Oct 5, 2012

Currently, we're working on standardizing how we represent network topologies internally for implementing more sophisticated policies.

TopoParser is intended to provide means of picking up topologies from various different sources. Currently, parseTopo is the primary function for taking a topology represented as a string in mininet's format (i.e. what you get when you run the net command in mininet) and returns it into something which we can build into a topology as defined in Topo.hs. See TopoSample for an example of this.

We want to extend this to pick up the topology from mininet directly so when a controller fires up, it can pick up a representation of the topology being simulated in mininet for building policies. This amounts to adding some function to TopoParser with pattern: ?? -> String where ?? is whatever is needed to pick up the output of the net command from mininet.

Currently, if you run testMakeTop in TopoSample.hs (in examples) you will build a Topo instance from a string of the format mininet spits out. The proposed extension would allow us to write an alternative to testParse which would pick up a topology from a running instance of mininet directly, rather than the hard-coded string which was copied and pasted from mininet.

One place that could take advantage of this change is in BaseMon which currently picks up a topology from a string and the parser.

@ghost ghost assigned arjunguha Oct 5, 2012
@arjunguha
Copy link
Member

Got it, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants