Exemple #1
0
 def interface(self, interface_id):
     return SubShell(
         self.shell,
         enter="interface {}".format(interface_id),
         exit_cmd="exit",
         validate=no_output(UnknownInterface, interface_id),
     )
Exemple #2
0
 def interface(self, interface_id):
     return SubShell(self.shell, enter="interface {}".format(interface_id), exit_cmd='exit',
                     validate=no_output(UnknownInterface, interface_id))