Skip to content
Snippets Groups Projects
Commit 80b3dbbd authored by Brandon Heller's avatar Brandon Heller
Browse files

CLI: add node dump-all-data command

parent 74ef7615
No related branches found
No related tags found
No related merge requests found
......@@ -522,7 +522,7 @@ def interact(self):
class MininetCLI(object):
'''Simple command-line interface to talk to nodes.'''
cmds = ['?', 'help', 'nodes', 'net', 'sh', 'ping_all', 'exit', \
'ping_pair', 'iperf', 'iperf_udp', 'intfs']
'ping_pair', 'iperf', 'iperf_udp', 'intfs', 'dump']
def __init__(self, mininet):
self.mn = mininet
......@@ -596,6 +596,11 @@ def intfs(self, args):
for dpid, node in self.mn.nodes.iteritems():
lg.info('%s: %s\n' % (node.name, ' '.join(node.intfs)))
def dump(self, args):
'''Dump node info.'''
for dpid, node in self.mn.nodes.iteritems():
lg.info('%s\n' % node)
def run(self):
'''Read and execute commands.'''
lg.warn('*** Starting CLI:\n')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment