Example #1
0
 def do_delbr(self, arg, forced=False):
     """
     delbr br1, br2
     Delete a bridge
     """
     brs = arg.replace(',', ' ').split()
     if len(brs) < 1:
         output('Not enough parameters are given, use like ')
         output('delbr br1,br2\n')
         return
     for br in brs:
         br_delbr(br)
Example #2
0
 def do_delbr(self, arg, forced=False):
     """
     delbr br1, br2
     Delete a bridge
     """
     brs = arg.replace(',', ' ').split()
     if len(brs) < 1:
         output('Not enough parameters are given, use like ')
         output('delbr br1,br2\n')
         return
     for br in brs:
         br_delbr(br)
Example #3
0
 def do_delbr(self, arg):
     """
     delbr [bridge]
     Delete a bridge
     """
     args = arg.split()
     if len(args) < 1:
         output('Not enough parameters are given, use like ')
         output('del br1,br2\n')
         return
     brs = ' '.join(args[1:]).replace(',', ' ').split()
     for br in brs:
         br_delbr(br)