-
Notifications
You must be signed in to change notification settings - Fork 76
Description
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
- create a route prefix list
- 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: