Ejemplo 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})
Ejemplo 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)
Ejemplo 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)
Ejemplo 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})
Ejemplo 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})
Ejemplo 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})
Ejemplo 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)
Ejemplo 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)
Ejemplo 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})
Ejemplo 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})
Ejemplo 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)
Ejemplo 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})
Ejemplo 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})
Ejemplo 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)
Ejemplo 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)
Ejemplo 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})
Ejemplo 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})
Ejemplo 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)
Ejemplo 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})
Ejemplo 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})
Ejemplo 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)
Ejemplo 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})