USC-NSL / miniNExT

An extension layer that makes it easier to build complex networks in Mininet
Other
44 stars 30 forks source link

Dynamic adding host with a quagga service MiniNExT object #16

Open sinhayash opened 6 years ago

sinhayash commented 6 years ago

Is there a way to add a host with a quagga service after MiniNExT has been instantiated? For example:

net = MiniNExT(link=TCLink)
node = net.addHost(name=name, ip=ip, hostname=name, privateLogDir=True, cls=Host,
      privateRunDir=True, inMountNamespace=True, inPIDNamespace=True, inUTSNamespace=True,
      service=quaggaSvc, nodeConfig=quaggaSvcConfig)

I cannot create a topo class and pass to MiniNExT since the network changes dynamically.

sinhayash commented 6 years ago

@mjnovice, @edgarcosta92, @bschlinker please tell if this is possible ?

edgar-costa commented 6 years ago

Its possible (but would need some mininet/mininext tweaks). You need to see what MiniNext() and MiniNext().start() do, so you can replicate that when you add your new node into the network.