Module Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias Import alias ImportFrom alias alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr If CompareNotEq Call NameLoad NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Raise Call AttributeLoad NameLoad attr Call NameLoad Str For NameStore AttributeLoad NameLoad attr body For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str If CompareEq NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad DictComp NameLoad SubscriptLoad NameLoad Index Num comprehension TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body If SubscriptLoad NameLoad Index Str body If BoolOpAnd CompareNotIn Str NameLoad CompareNotIn NameLoad NameLoad body Assign NameStore BinOpMod Call NameLoad Str NameLoad Raise Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str orelse If CompareIn NameLoad NameLoad body Assign NameStore BinOpMod Call NameLoad Str NameLoad Raise Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body If BoolOpAnd CompareIn NameLoad NameLoad UnaryOpNot SubscriptLoad NameLoad Index Str body Assign NameStore BinOpMod Call NameLoad Str NameLoad Raise Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body If BoolOpOr CompareNotIn NameLoad NameLoad CompareIs SubscriptLoad NameLoad Index NameLoad AttributeLoad NameLoad attr body Continue If CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index NameLoad If CompareNotIn Str NameLoad body Continue For NameStore SubscriptLoad NameLoad Index Str body Expr Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call SubscriptLoad AttributeLoad NameLoad attr Index NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad If NameLoad body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore BinOpMod Call NameLoad Str NameLoad Raise Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr NameLoad body Return NameLoad orelse TryExcept body Assign NameStore Call NameLoad NameLoad Num handlers ExceptHandler type NameLoad body With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpSub Num Call NameLoad NameLoad Return BinOpAdd BinOpAdd Str BinOpMult Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If BoolOpOr CompareEq NameLoad Str BoolOpAnd CompareEq NameLoad Str SubscriptLoad NameLoad Index NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad orelse If CompareEq NameLoad Str body If UnaryOpNot SubscriptLoad NameLoad Index NameLoad body Assign SubscriptStore NameLoad Index NameLoad ListLoad orelse Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Str Assign SubscriptStore NameLoad Index NameLoad ListLoad For NameStore NameLoad body Assign AttributeStore SubscriptLoad NameLoad Index NameLoad attr Call NameLoad NameLoad orelse If BoolOpAnd CompareEq NameLoad Str CompareEq SubscriptLoad NameLoad Index NameLoad Str body Assign SubscriptStore NameLoad Index NameLoad NameLoad decorator_list
N/A N/A webob.exc oslo_config cfg oslo_log log logging oslo_utils excutils oslo_utils uuidutils N/A six networking_cisco._i18n _ _LE neutron.api.v2 attributes N/A LOG N/A N/A logging getLogger __name__ get_specific_config N/A N/A prefix N/A N/A N/A Retrieve config based on the format [<prefix>:<value>].

    returns: a dict, {<UUID>: {<key1>:<value1>, <key2>:<value2>, ...}}
     N/A conf_dict N/A N/A multi_parser N/A N/A cfg MultiConfigParser N/A read_ok N/A N/A multi_parser read N/A N/A cfg CONF config_file N/A N/A N/A len read_ok N/A len N/A N/A cfg CONF config_file N/A N/A N/A N/A cfg Error N/A _ Some config files were not parsed properly N/A parsed_file N/A multi_parser parsed N/A N/A parsed_item N/A N/A parsed_file keys N/A N/A p_i N/A N/A parsed_item lower N/A N/A N/A p_i startswith prefix N/A N/A N/A section_type uuid N/A N/A p_i split : N/A N/A section_type prefix N/A N/A N/A conf_dict N/A uuid N/A k N/A v N/A 0 N/A N/A k v N/A N/A N/A parsed_file N/A parsed_item items N/A conf_dict N/A verify_resource_dict N/A N/A res_dict is_create attr_info N/A N/A N/A Verifies required attributes are in resource dictionary, res_dict.

    Also checking that an attribute is only specified if it is allowed
    for the given operation (create/update).

    Attribute with default values are considered to be optional.

    This function contains code taken from function 'prepare_request_body' in
    attributes.py.
     N/A is_create N/A N/A N/A attr attr_vals N/A N/A six iteritems attr_info N/A N/A N/A attr_vals N/A allow_post N/A N/A N/A N/A default attr_vals N/A attr res_dict N/A N/A msg N/A N/A _ Failed to parse request. Required attribute '%s' not specified attr N/A N/A N/A N/A webob exc HTTPBadRequest msg N/A N/A res_dict N/A attr N/A N/A res_dict get attr N/A N/A attr_vals get default N/A N/A N/A attr res_dict N/A N/A msg N/A N/A _ Attribute '%s' not allowed in POST attr N/A N/A N/A N/A webob exc HTTPBadRequest msg N/A N/A N/A attr attr_vals N/A N/A six iteritems attr_info N/A N/A N/A N/A attr res_dict N/A N/A attr_vals N/A allow_put N/A N/A msg N/A N/A _ Cannot update read-only attribute %s attr N/A N/A N/A N/A webob exc HTTPBadRequest msg N/A N/A attr attr_vals N/A N/A six iteritems attr_info N/A N/A N/A N/A attr res_dict N/A N/A res_dict N/A attr N/A attributes ATTR_NOT_SPECIFIED N/A N/A N/A N/A convert_to attr_vals N/A N/A N/A res_dict N/A attr N/A N/A attr_vals N/A convert_to N/A res_dict N/A attr N/A N/A validate attr_vals N/A N/A N/A rule N/A attr_vals N/A validate N/A N/A N/A _ensure_format rule attr res_dict N/A res N/A N/A N/A attributes validators N/A rule N/A res_dict N/A attr N/A N/A attr_vals N/A validate N/A rule N/A res N/A N/A msg_dict N/A dict attr attr reason res N/A msg N/A N/A _ Invalid input for %(attr)s. Reason: %(reason)s. msg_dict N/A N/A N/A N/A webob exc HTTPBadRequest msg N/A res_dict N/A uuidify N/A N/A val N/A N/A N/A Takes an integer and transforms it to a UUID format.

    returns: UUID formatted version of input.
     N/A N/A N/A uuidutils is_uuid_like val N/A N/A val N/A N/A N/A N/A int_val N/A int val 16 N/A N/A N/A ValueError N/A N/A N/A N/A excutils save_and_reraise_exception N/A N/A N/A N/A LOG error N/A _LE Invalid UUID format %s. Please provide an integer in decimal (0-9) or hex (0-9a-e) format val N/A res N/A str int_val N/A num N/A 12 N/A len res N/A N/A N/A 00000000-0000-0000-0000- N/A 0 num res N/A _ensure_format N/A N/A rule attribute res_dict N/A N/A N/A Verifies that attribute in res_dict is properly formatted.

    Since, in the .ini-files, lists are specified as ':' separated text and
    UUID values can be plain integers we need to transform any such values
    into proper format. Empty strings are converted to None if validator
    specifies that None value is accepted.
     N/A N/A N/A rule type:uuid N/A N/A rule type:uuid_or_none N/A res_dict N/A attribute N/A N/A N/A res_dict N/A attribute N/A uuidify N/A res_dict N/A attribute N/A N/A N/A rule type:uuid_list N/A N/A N/A N/A res_dict N/A attribute N/A N/A N/A res_dict N/A attribute N/A N/A N/A temp_list N/A N/A N/A res_dict N/A attribute split : N/A N/A res_dict N/A attribute N/A N/A item temp_list N/A N/A N/A N/A res_dict N/A attribute append N/A uuidify item N/A N/A N/A N/A rule type:string_or_none N/A N/A res_dict N/A attribute N/A N/A N/A res_dict N/A attribute None N/A