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_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'])
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_router_attributes(self, router): """Filter out router attributes for an update operation.""" utils.try_del(router, ['id', 'tenant_id', 'status'])