예제 #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'])
예제 #2
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'])
예제 #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'
     ])
예제 #4
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'])
예제 #5
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'])
예제 #6
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'])
예제 #7
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'])
예제 #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'])