Tufin / pytos

A Python SDK for Tufin Orchestration Suite
https://www.tufin.com
Apache License 2.0
55 stars 21 forks source link

Bugfix to Access_Request_Generator method _prepare_targets used in from_list_of_tuples for IPv6 #6

Closed marioland closed 7 years ago

marioland commented 7 years ago

SecureChange 17.1 API expects cidr in address an no netmask for ipv6 networks Tufin might fix it in the API some time. Then this fix will rather be a bug. But as the API is not versioned this results in unknown behaviour.

Example

<destinations>
    <destination type="IP">
        <id/>
        <ip_address>2a03:1e80:a01::</ip_address>
        <netmask>96</netmask>

Leads to ?xml version="1.0" encoding="UTF-8" standalone="yes"?>FIELD_VALIDATION_ERRORInvalid value for field: Required Access: (Invalid IP network 2a03:1e80:a01::/96)

DeepSpace2 commented 7 years ago

Hi Mario. Thanks for the PR. We are currently working on a more robust solution to this issue.