Esempio n. 1
0
 def update_subnet_postcommit(self, context):
     entity_path = 'subnets/' + context.current['id']
     resource = context.current.copy()
     onos_utils.send_msg(self.onos_path, self.onos_auth, 'put', entity_path,
                         {'subnet': resource})
Esempio n. 2
0
 def delete_flow_classifier(self, context):
     entity_path = 'flow_classifiers/' + context.current['id']
     onos_utils.send_msg(self.onos_path, self.onos_auth, 'delete',
                         entity_path)
Esempio n. 3
0
 def send_router_msg(self, msg_type, entity_path, entity):
     onos_utils.send_msg(self.onos_path, self.onos_auth,
                         msg_type, entity_path, entity)
Esempio n. 4
0
 def create_security_group_rule_postcommit(self, context, ops, res_type,
                                           res_id, res):
     entity_path = 'security-group-rules'
     onos_utils.send_msg(self.onos_path, self.onos_auth, ops, entity_path,
                         {'security_group_rule': res})
Esempio n. 5
0
 def update_flow_classifier(self, context):
     entity_path = 'flow_classifiers/' + context.current['id']
     resource = context.current.copy()
     onos_utils.send_msg(self.onos_path, self.onos_auth, 'put', entity_path,
                         {'flow_classifier': resource})
Esempio n. 6
0
 def create_flow_classifier(self, context):
     entity_path = 'flow_classifiers'
     resource = context.current.copy()
     onos_utils.send_msg(self.onos_path, self.onos_auth, 'post',
                         entity_path, {'flow_classifier': resource})
Esempio n. 7
0
 def delete_flow_classifier(self, context):
     entity_path = 'flow_classifiers/' + context.current['id']
     onos_utils.send_msg(self.onos_path, self.onos_auth, 'delete',
                         entity_path)
Esempio n. 8
0
 def send_router_msg(self, msg_type, entity_path, entity):
     onos_utils.send_msg(self.onos_path, self.onos_auth, msg_type,
                         entity_path, entity)
Esempio n. 9
0
 def create_port_pair_group(self, context):
     entity_path = 'port_pair_groups'
     resource = context.current.copy()
     onos_utils.send_msg(self.onos_path, self.onos_auth, 'post',
                         entity_path, {'port_pair_group': resource})
Esempio n. 10
0
 def update_subnet_postcommit(self, context):
     entity_path = 'subnets/' + context.current['id']
     resource = context.current.copy()
     onos_utils.send_msg(self.onos_path, self.onos_auth, 'put',
                         entity_path, {'subnet': resource})
Esempio n. 11
0
 def delete_subnet_postcommit(self, context):
     entity_path = 'subnets/' + context.current['id']
     onos_utils.send_msg(self.onos_path, self.onos_auth, 'delete',
                         entity_path)
Esempio n. 12
0
 def create_subnet_postcommit(self, context):
     entity_path = 'subnets'
     resource = context.current.copy()
     onos_utils.send_msg(self.onos_path, self.onos_auth, 'post',
                         entity_path, {'subnet': resource})
Esempio n. 13
0
 def create_network_postcommit(self, context):
     entity_path = 'networks'
     resource = context.current.copy()
     onos_utils.send_msg(self.onos_path, self.onos_auth, 'post',
                         entity_path, {'network': resource})
Esempio n. 14
0
 def delete_security_group_rule_postcommit(self, context, ops, res_type,
                                           res_id, res):
     entity_path = 'security-group-rules/' + res_id
     onos_utils.send_msg(self.onos_path, self.onos_auth, ops, entity_path)
Esempio n. 15
0
 def delete_subnet_postcommit(self, context):
     entity_path = 'subnets/' + context.current['id']
     onos_utils.send_msg(self.onos_path, self.onos_auth, 'delete',
                         entity_path)
Esempio n. 16
0
 def update_port_pair_group(self, context):
     entity_path = 'port_pair_groups/' + context.current['id']
     resource = context.current.copy()
     onos_utils.send_msg(self.onos_path, self.onos_auth, 'put',
                         entity_path, {'port_pair_group': resource})
Esempio n. 17
0
 def create_port_postcommit(self, context):
     entity_path = 'ports'
     resource = context.current.copy()
     onos_utils.send_msg(self.onos_path, self.onos_auth, 'post',
                         entity_path, {'port': resource})
Esempio n. 18
0
 def delete_port_pair_group(self, context):
     entity_path = 'port_pair_groups/' + context.current['id']
     onos_utils.send_msg(self.onos_path, self.onos_auth, 'delete',
                         entity_path)
Esempio n. 19
0
 def update_flow_classifier(self, context):
     entity_path = 'flow_classifiers/' + context.current['id']
     resource = context.current.copy()
     onos_utils.send_msg(self.onos_path, self.onos_auth, 'put',
                         entity_path, {'flow_classifier': resource})
Esempio n. 20
0
 def create_flow_classifier(self, context):
     entity_path = 'flow_classifiers'
     resource = context.current.copy()
     onos_utils.send_msg(self.onos_path, self.onos_auth, 'post',
                         entity_path, {'flow_classifier': resource})
Esempio n. 21
0
 def send_floatingip_msg(self, msg_type, entity_path, entity):
     onos_utils.send_msg(self.onos_path, self.onos_auth,
                         msg_type, entity_path, entity)
Esempio n. 22
0
 def update_security_group_postcommit(self, context, ops, res_type, res_id,
                                      res):
     entity_path = 'security-groups/' + res_id
     onos_utils.send_msg(self.onos_path, self.onos_auth, ops, entity_path,
                         {'security_group': res})