Beispiel #1
0
 def get(self, *args, **kargs):
     con_dict = {}
     for key in ['node_ip', 'port', 'con_id']:
         con_dict[key] = self.get_argument(key)
     myswarm = Myswarm()
     myswarm.destroy_container(con_dict['node_ip'], con_dict['port'],
                               con_dict['con_id'])
Beispiel #2
0
 def get(self, *args, **kargs):
     con_dict = {}
     for key in ['node_ip', 'port', 'con_id']:
         con_dict[key] = self.get_argument(key)
     myswarm = Myswarm()
     myswarm.destroy_container(con_dict['node_ip'], con_dict['port'],
                               con_dict['con_id'])
     self.redirect("/contlist?active=3&get_all_node=True")