Skip to content

"Create route prefix lists" returns response object in the wrong schema #1059

@StrooprReply

Description

@StrooprReply

Describe the bug

When running the API call
https://api.strata.paloaltonetworks.com/config/network/v1/route-prefix-lists
to create a prefix list the response object ist returned in the wrong schema.
The type.ipv4.ipv4_entry[x].prefix object is returned as type "list" instead of type "dict" (which would include either "network" or "entry" as following object).

Example:
{'ipv4': {'ipv4_entry': [{'action': 'permit', 'name': 5, 'prefix': [{'greater_than_or_equal': 16, 'network': '10.64.0.0/16'}]}]}}

The object is still created fine in the SCM.

Expected behavior

The type.ipv4.ipv4_entry[x].prefix object should be returned as type "dict" (which would include either "network" or "entry" as following object).

Current behavior

The type.ipv4.ipv4_entry[x].prefix object is returned as type "list" instead of type "dict" (which would include either "network" or "entry" as following object).

Possible solution

Steps to reproduce

  1. create a route prefix list
  2. observe response object

Context

Your Environment

  • Version used:
  • Environment name and version (e.g. Chrome 59, node.js 5.4, python 3.7.3):
  • Operating System and version (desktop or mobile):
  • Link to your project:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions