Ejemplo n.º 1
0
 def do_vnf( self, line ):
     """
     Execute VNF sub-commands.
     See `vnf help' for the list of sub-commands.
     Without arguments, enters into the sub-command interpreter.
     """
     vnf = VNF(self.mn, self.stdin)
     if line.strip():
         vnf.onecmd( line )
     else:
         vnf.cmdloop()
Ejemplo n.º 2
0
 def complete_vnf( self, text, line, begidx, endidx ):
     l = len('vnf')
     vnf = VNF(self.mn, self.stdin)
     return vnf.complete_further(text, line[l:], begidx-l, endidx-l)