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()
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)