예제 #1
0
파일: cli.py 프로젝트: whatever4711/escape
 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()
예제 #2
0
파일: cli.py 프로젝트: whatever4711/escape
 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)