示例#1
0
 def filter_create_port_attributes(self, port, context, dbcontext):
     """Filter out port attributes not required for a create."""
     self.add_security_groups(context, dbcontext, port)
     # TODO(kmestery): Converting to uppercase due to ODL bug
     # https://bugs.opendaylight.org/show_bug.cgi?id=477
     port['mac_address'] = port['mac_address'].upper()
     odl_utils.try_del(port, ['status'])
 def filter_create_port_attributes(self, port, context, dbcontext):
     """Filter out port attributes not required for a create."""
     self.add_security_groups(context, dbcontext, port)
     # TODO(kmestery): Converting to uppercase due to ODL bug
     # https://bugs.opendaylight.org/show_bug.cgi?id=477
     port['mac_address'] = port['mac_address'].upper()
     odl_utils.try_del(port, ['status'])
示例#3
0
 def filter_update_port_attributes(self, port, context, dbcontext):
     """Filter out port attributes for an update operation."""
     self.add_security_groups(context, dbcontext, port)
     odl_utils.try_del(port, [
         'network_id', 'id', 'status', 'mac_address', 'tenant_id',
         'fixed_ips'
     ])
 def filter_update_port_attributes(self, port, context, dbcontext):
     """Filter out port attributes for an update operation."""
     self.add_security_groups(context, dbcontext, port)
     odl_utils.try_del(port, ['network_id', 'id', 'status', 'mac_address',
                    'tenant_id', 'fixed_ips'])
 def filter_update_subnet_attributes(self, subnet, context, dbcontext):
     """Filter out subnet attributes for an update operation."""
     odl_utils.try_del(subnet, ['id', 'network_id', 'ip_version', 'cidr',
                      'allocation_pools', 'tenant_id'])
 def filter_update_network_attributes(self, network, context, dbcontext):
     """Filter out network attributes for an update operation."""
     odl_utils.try_del(network, ['id', 'status', 'subnets', 'tenant_id'])
 def filter_create_network_attributes(self, network, context, dbcontext):
     """Filter out network attributes not required for a create."""
     odl_utils.try_del(network, ['status', 'subnets'])
示例#8
0
 def filter_update_subnet_attributes(self, subnet, context, dbcontext):
     """Filter out subnet attributes for an update operation."""
     odl_utils.try_del(subnet, [
         'id', 'network_id', 'ip_version', 'cidr', 'allocation_pools',
         'tenant_id'
     ])
示例#9
0
 def filter_update_network_attributes(self, network, context, dbcontext):
     """Filter out network attributes for an update operation."""
     odl_utils.try_del(network, ['id', 'status', 'subnets', 'tenant_id'])
示例#10
0
 def filter_create_network_attributes(self, network, context, dbcontext):
     """Filter out network attributes not required for a create."""
     odl_utils.try_del(network, ['status', 'subnets'])
示例#11
0
 def filter_update_router_attributes(self, router):
     """Filter out router attributes for an update operation."""
     utils.try_del(router, ['id', 'tenant_id', 'status'])
示例#12
0
 def filter_update_router_attributes(self, router):
     """Filter out router attributes for an update operation."""
     utils.try_del(router, ['id', 'tenant_id', 'status'])