catalystwan 0.41.2.dev9__py3-none-any.whl → 0.41.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- catalystwan/ENDPOINTS.md +611 -0
- catalystwan/__init__.py +2 -3
- catalystwan/api/administration.py +2 -13
- catalystwan/api/api_container.py +1 -4
- catalystwan/api/config_group_api.py +16 -41
- catalystwan/api/configuration_groups/parcel.py +30 -100
- catalystwan/api/configuration_groups/parcels/cellular_controller.py +33 -0
- catalystwan/api/feature_profile_api.py +237 -2016
- catalystwan/api/policy_api.py +116 -470
- catalystwan/api/template_api.py +44 -113
- catalystwan/api/templates/README.md +47 -61
- catalystwan/api/templates/cli_template.py +7 -17
- catalystwan/api/templates/device_template/device_template.py +32 -127
- catalystwan/api/templates/device_template/device_template_payload.json.j2 +19 -0
- catalystwan/api/templates/feature_template.py +3 -3
- catalystwan/api/templates/models/cisco_aaa_model.py +42 -289
- catalystwan/api/templates/models/cisco_banner_model.py +2 -11
- catalystwan/api/templates/models/cisco_bfd_model.py +36 -31
- catalystwan/api/templates/models/cisco_bgp_model.py +131 -382
- catalystwan/api/templates/models/cisco_logging_model.py +43 -80
- catalystwan/api/templates/models/cisco_ntp_model.py +15 -34
- catalystwan/api/templates/models/cisco_omp_model.py +60 -70
- catalystwan/api/templates/models/cisco_ospf.py +74 -143
- catalystwan/api/templates/models/cisco_ospfv3.py +95 -217
- catalystwan/api/templates/models/cisco_secure_internet_gateway.py +142 -304
- catalystwan/api/templates/models/cisco_snmp_model.py +52 -66
- catalystwan/api/templates/models/cisco_system.py +129 -238
- catalystwan/api/templates/models/cisco_vpn_interface_model.py +275 -632
- catalystwan/api/templates/models/cisco_vpn_model.py +270 -433
- catalystwan/api/templates/models/cli_template.py +2 -3
- catalystwan/api/templates/models/omp_vsmart_model.py +10 -46
- catalystwan/api/templates/models/security_vsmart_model.py +8 -11
- catalystwan/api/templates/models/supported.py +4 -10
- catalystwan/api/templates/models/system_vsmart_model.py +27 -164
- catalystwan/apigw_auth.py +2 -6
- catalystwan/dataclasses.py +53 -2
- catalystwan/endpoints/__init__.py +41 -41
- catalystwan/endpoints/certificate_management_device.py +0 -4
- catalystwan/endpoints/cluster_management.py +9 -30
- catalystwan/endpoints/configuration/feature_profile/sdwan/policy_object.py +12 -35
- catalystwan/endpoints/configuration/feature_profile/sdwan/system.py +11 -164
- catalystwan/endpoints/configuration/feature_profile/sdwan/transport.py +26 -144
- catalystwan/endpoints/configuration/policy/definition/access_control_list.py +11 -6
- catalystwan/endpoints/configuration/policy/definition/access_control_list_ipv6.py +11 -6
- catalystwan/endpoints/configuration/policy/definition/control.py +11 -6
- catalystwan/endpoints/configuration/policy/definition/device_access.py +11 -6
- catalystwan/endpoints/configuration/policy/definition/device_access_ipv6.py +11 -6
- catalystwan/endpoints/configuration/policy/definition/hub_and_spoke.py +11 -6
- catalystwan/endpoints/configuration/policy/definition/mesh.py +11 -2
- catalystwan/endpoints/configuration/policy/definition/qos_map.py +11 -2
- catalystwan/endpoints/configuration/policy/definition/rewrite.py +11 -6
- catalystwan/endpoints/configuration/policy/definition/rule_set.py +11 -2
- catalystwan/endpoints/configuration/policy/definition/security_group.py +11 -6
- catalystwan/endpoints/configuration/policy/definition/traffic_data.py +11 -6
- catalystwan/endpoints/configuration/policy/definition/vpn_membership.py +11 -6
- catalystwan/endpoints/configuration/policy/definition/zone_based_firewall.py +11 -6
- catalystwan/endpoints/configuration/policy/list/app.py +16 -3
- catalystwan/endpoints/configuration/policy/list/app_probe.py +15 -6
- catalystwan/endpoints/configuration/policy/list/as_path.py +16 -3
- catalystwan/endpoints/configuration/policy/list/class_map.py +16 -3
- catalystwan/endpoints/configuration/policy/list/color.py +16 -3
- catalystwan/endpoints/configuration/policy/list/community.py +16 -3
- catalystwan/endpoints/configuration/policy/list/data_ipv6_prefix.py +15 -6
- catalystwan/endpoints/configuration/policy/list/data_prefix.py +16 -3
- catalystwan/endpoints/configuration/policy/list/expanded_community.py +15 -6
- catalystwan/endpoints/configuration/policy/list/fqdn.py +16 -3
- catalystwan/endpoints/configuration/policy/list/geo_location.py +16 -3
- catalystwan/endpoints/configuration/policy/list/ips_signature.py +15 -6
- catalystwan/endpoints/configuration/policy/list/ipv6_prefix.py +16 -3
- catalystwan/endpoints/configuration/policy/list/local_app.py +16 -3
- catalystwan/endpoints/configuration/policy/list/local_domain.py +16 -3
- catalystwan/endpoints/configuration/policy/list/mirror.py +16 -3
- catalystwan/endpoints/configuration/policy/list/policer.py +16 -3
- catalystwan/endpoints/configuration/policy/list/port.py +16 -3
- catalystwan/endpoints/configuration/policy/list/preferred_color_group.py +15 -6
- catalystwan/endpoints/configuration/policy/list/prefix.py +16 -4
- catalystwan/endpoints/configuration/policy/list/protocol_name.py +15 -6
- catalystwan/endpoints/configuration/policy/list/region.py +10 -2
- catalystwan/endpoints/configuration/policy/list/site.py +16 -3
- catalystwan/endpoints/configuration/policy/list/sla.py +16 -3
- catalystwan/endpoints/configuration/policy/list/tloc.py +16 -3
- catalystwan/endpoints/configuration/policy/list/url_allow_list.py +16 -3
- catalystwan/endpoints/configuration/policy/list/url_block_list.py +16 -3
- catalystwan/endpoints/configuration/policy/list/vpn.py +16 -3
- catalystwan/endpoints/configuration/policy/list/zone.py +16 -3
- catalystwan/endpoints/configuration/policy/security_template.py +3 -2
- catalystwan/endpoints/configuration/software_actions.py +4 -2
- catalystwan/endpoints/configuration_dashboard_status.py +2 -2
- catalystwan/endpoints/configuration_device_template.py +1 -15
- catalystwan/endpoints/configuration_feature_profile.py +11 -8
- catalystwan/endpoints/configuration_group.py +5 -28
- catalystwan/endpoints/configuration_settings.py +1 -90
- catalystwan/endpoints/endpoints_container.py +18 -82
- catalystwan/endpoints/real_time_monitoring/reboot_history.py +3 -1
- catalystwan/endpoints/tenant_migration.py +0 -2
- catalystwan/exceptions.py +0 -24
- catalystwan/integration_tests/test_find_template_values.py +18 -7
- catalystwan/models/common.py +2 -1898
- catalystwan/models/configuration/common.py +0 -1
- catalystwan/models/configuration/config_migration.py +36 -0
- catalystwan/models/configuration/feature_profile/common.py +149 -634
- catalystwan/models/configuration/feature_profile/sdwan/management/vpn.py +26 -0
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/__init__.py +60 -69
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/app_probe.py +20 -34
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/application_list.py +6 -8
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/color_list.py +5 -7
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/data_prefix.py +4 -13
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/expanded_community_list.py +7 -9
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/fowarding_class.py +5 -7
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/ipv6_data_prefix.py +9 -11
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/ipv6_prefix_list.py +10 -25
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/{policer.py → policier.py} +10 -12
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/prefered_group_color.py +10 -29
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/prefix_list.py +8 -23
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/sla_class.py +31 -12
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/standard_community.py +10 -16
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/tloc_list.py +7 -8
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/application_list.py +6 -8
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/data_prefix.py +5 -7
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/fqdn.py +5 -7
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/geolocation_list.py +5 -7
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/ips_signature.py +5 -7
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/local_domain.py +5 -7
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/protocol_list.py +5 -7
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/security_port.py +11 -21
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/url.py +15 -36
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/zone.py +18 -14
- catalystwan/models/configuration/feature_profile/sdwan/service/acl.py +409 -0
- catalystwan/models/configuration/feature_profile/sdwan/service/appqoe.py +42 -77
- catalystwan/models/configuration/feature_profile/sdwan/service/bgp.py +288 -0
- catalystwan/models/configuration/feature_profile/sdwan/service/dhcp_server.py +64 -107
- catalystwan/models/configuration/feature_profile/sdwan/service/eigrp.py +42 -39
- catalystwan/models/configuration/feature_profile/sdwan/service/lan/common.py +88 -7
- catalystwan/models/configuration/feature_profile/sdwan/service/lan/ethernet.py +156 -232
- catalystwan/models/configuration/feature_profile/sdwan/service/lan/gre.py +108 -38
- catalystwan/models/configuration/feature_profile/sdwan/service/lan/ipsec.py +84 -77
- catalystwan/models/configuration/feature_profile/sdwan/service/lan/svi.py +56 -62
- catalystwan/models/configuration/feature_profile/sdwan/service/lan/vpn.py +121 -112
- catalystwan/models/configuration/feature_profile/sdwan/service/multicast.py +57 -56
- catalystwan/models/configuration/feature_profile/sdwan/service/object_tracker.py +21 -15
- catalystwan/models/configuration/feature_profile/sdwan/{routing → service}/ospf.py +47 -55
- catalystwan/models/configuration/feature_profile/sdwan/{routing → service}/ospfv3.py +72 -74
- catalystwan/models/configuration/feature_profile/sdwan/service/route_policy.py +110 -358
- catalystwan/models/configuration/feature_profile/sdwan/service/service_insertion_attachment.py +25 -17
- catalystwan/models/configuration/feature_profile/sdwan/service/switchport.py +58 -50
- catalystwan/models/configuration/feature_profile/sdwan/service/tracker.py +21 -12
- catalystwan/models/configuration/feature_profile/sdwan/service/wireless_lan.py +31 -27
- catalystwan/models/configuration/feature_profile/sdwan/system/aaa.py +10 -58
- catalystwan/models/configuration/feature_profile/sdwan/transport/cellular_controller.py +23 -26
- catalystwan/models/configuration/profile_type.py +6 -1
- catalystwan/models/policy/__init__.py +69 -282
- catalystwan/models/policy/centralized.py +29 -26
- catalystwan/models/policy/{definition → definitions}/access_control_list.py +17 -47
- catalystwan/models/policy/{definition → definitions}/access_control_list_ipv6.py +18 -42
- catalystwan/models/policy/{definition → definitions}/control.py +25 -48
- catalystwan/models/policy/{definition → definitions}/device_access.py +11 -22
- catalystwan/models/policy/{definition → definitions}/device_access_ipv6.py +11 -20
- catalystwan/models/policy/{definition → definitions}/hub_and_spoke.py +4 -18
- catalystwan/models/policy/{definition → definitions}/mesh.py +1 -13
- catalystwan/models/policy/{definition → definitions}/qos_map.py +32 -39
- catalystwan/models/policy/{definition → definitions}/rewrite.py +2 -12
- catalystwan/models/policy/{definition → definitions}/rule_set.py +48 -66
- catalystwan/models/policy/{definition → definitions}/security_group.py +14 -38
- catalystwan/models/policy/{definition → definitions}/traffic_data.py +61 -184
- catalystwan/models/policy/{definition → definitions}/vpn_membership.py +1 -13
- catalystwan/models/policy/{definition → definitions}/zone_based_firewall.py +32 -93
- catalystwan/models/policy/lists.py +330 -0
- catalystwan/models/policy/lists_entries.py +444 -0
- catalystwan/models/policy/localized.py +16 -34
- catalystwan/models/policy/policy.py +10 -14
- catalystwan/models/policy/policy_definition.py +173 -673
- catalystwan/models/policy/policy_list.py +27 -38
- catalystwan/models/policy/security.py +46 -145
- catalystwan/response.py +2 -6
- catalystwan/session.py +1 -1
- catalystwan/tests/templates/definitions/{cisco_vpn_basic.json → Basic_Cisco_VPN_Model.json} +2 -2
- catalystwan/tests/templates/definitions/complex_aaa.json +277 -0
- catalystwan/tests/templates/definitions/{cisco_vpn_complex.json → complex_cisco_vpn.json} +12 -27
- catalystwan/tests/templates/definitions/{cisco_aaa.json → iuo.json} +15 -44
- catalystwan/tests/templates/definitions/omp_1.json +11 -0
- catalystwan/tests/templates/definitions/{omp_vsmart_2.json → omp_2.json} +2 -16
- catalystwan/tests/templates/definitions/{omp_vsmart_3.json → omp_3.json} +2 -16
- catalystwan/tests/templates/models/__init__.py +13 -46
- catalystwan/tests/templates/models/cisco_aaa.py +48 -81
- catalystwan/tests/templates/models/cisco_banner.py +2 -2
- catalystwan/tests/templates/models/cisco_bfd.py +6 -4
- catalystwan/tests/templates/models/cisco_system.py +3 -108
- catalystwan/tests/templates/models/cisco_vpn.py +72 -42
- catalystwan/tests/templates/models/omp_vsmart.py +8 -28
- catalystwan/tests/templates/schemas/cedge_aaa.json +1 -1
- catalystwan/tests/templates/schemas/cisco_system.json +0 -242
- catalystwan/tests/templates/schemas/cisco_vpn.json +1 -53
- catalystwan/tests/templates/schemas/omp-vsmart.json +0 -20
- catalystwan/tests/templates/test_chose_model.py +10 -6
- catalystwan/tests/templates/test_deserialize_model.py +4 -4
- catalystwan/tests/templates/test_find_template_values.py +0 -229
- catalystwan/tests/templates/test_serialize_model.py +2 -1
- catalystwan/tests/test_cli_template.py +9 -8
- catalystwan/tests/test_endpoints.py +11 -42
- catalystwan/tests/test_templates.py +19 -16
- catalystwan/utils/feature_template/find_template_values.py +9 -22
- catalystwan/utils/timezone.py +422 -0
- catalystwan/workflows/tenant_migration.py +1 -1
- {catalystwan-0.41.2.dev9.dist-info → catalystwan-0.41.3.dist-info}/METADATA +1 -20
- catalystwan-0.41.3.dist-info/RECORD +353 -0
- catalystwan/api/builders/__init__.py +0 -14
- catalystwan/api/builders/feature_profiles/__init__.py +0 -0
- catalystwan/api/builders/feature_profiles/application_priority.py +0 -58
- catalystwan/api/builders/feature_profiles/builder_factory.py +0 -59
- catalystwan/api/builders/feature_profiles/cli.py +0 -76
- catalystwan/api/builders/feature_profiles/mixins.py +0 -44
- catalystwan/api/builders/feature_profiles/other.py +0 -79
- catalystwan/api/builders/feature_profiles/report.py +0 -155
- catalystwan/api/builders/feature_profiles/service.py +0 -248
- catalystwan/api/builders/feature_profiles/system.py +0 -80
- catalystwan/api/builders/feature_profiles/transport.py +0 -256
- catalystwan/api/builders/feature_profiles/uc_voice.py +0 -287
- catalystwan/api/templates/models/aaa_model.py +0 -387
- catalystwan/api/templates/models/vpn_vsmart_interface_model.py +0 -198
- catalystwan/api/templates/models/vpn_vsmart_model.py +0 -124
- catalystwan/endpoints/configuration/feature_profile/sdwan/application_priority.py +0 -107
- catalystwan/endpoints/configuration/feature_profile/sdwan/cli.py +0 -60
- catalystwan/endpoints/configuration/feature_profile/sdwan/dns_security.py +0 -83
- catalystwan/endpoints/configuration/feature_profile/sdwan/embedded_security.py +0 -88
- catalystwan/endpoints/configuration/feature_profile/sdwan/other.py +0 -62
- catalystwan/endpoints/configuration/feature_profile/sdwan/service.py +0 -154
- catalystwan/endpoints/configuration/feature_profile/sdwan/sig_security.py +0 -88
- catalystwan/endpoints/configuration/feature_profile/sdwan/topology.py +0 -93
- catalystwan/endpoints/configuration/feature_profile/sdwan/uc_voice.py +0 -77
- catalystwan/endpoints/configuration/network_hierarchy.py +0 -47
- catalystwan/endpoints/configuration/packages.py +0 -36
- catalystwan/endpoints/configuration/policy/abstractions.py +0 -49
- catalystwan/endpoints/configuration/policy/definition/aip.py +0 -52
- catalystwan/endpoints/configuration/policy/definition/amp.py +0 -52
- catalystwan/endpoints/configuration/policy/definition/app_route.py +0 -50
- catalystwan/endpoints/configuration/policy/definition/cflowd.py +0 -46
- catalystwan/endpoints/configuration/policy/definition/dial_peer.py +0 -57
- catalystwan/endpoints/configuration/policy/definition/dns_security.py +0 -50
- catalystwan/endpoints/configuration/policy/definition/fxo_port.py +0 -57
- catalystwan/endpoints/configuration/policy/definition/fxs_did_port.py +0 -57
- catalystwan/endpoints/configuration/policy/definition/fxs_port.py +0 -57
- catalystwan/endpoints/configuration/policy/definition/intrusion_prevention.py +0 -52
- catalystwan/endpoints/configuration/policy/definition/pri_isdn_port.py +0 -57
- catalystwan/endpoints/configuration/policy/definition/route_policy.py +0 -50
- catalystwan/endpoints/configuration/policy/definition/srst_phone_profile.py +0 -59
- catalystwan/endpoints/configuration/policy/definition/ssl_decryption.py +0 -50
- catalystwan/endpoints/configuration/policy/definition/ssl_decryption_utd_profile.py +0 -52
- catalystwan/endpoints/configuration/policy/definition/url_filtering.py +0 -50
- catalystwan/endpoints/configuration/policy/definition/vpn_qos_map.py +0 -50
- catalystwan/endpoints/configuration/policy/list/extended_community.py +0 -52
- catalystwan/endpoints/configuration/policy/list/fax_protocol.py +0 -48
- catalystwan/endpoints/configuration/policy/list/identity.py +0 -48
- catalystwan/endpoints/configuration/policy/list/media_profile.py +0 -52
- catalystwan/endpoints/configuration/policy/list/modem_pass_through.py +0 -52
- catalystwan/endpoints/configuration/policy/list/scalable_group_tag.py +0 -52
- catalystwan/endpoints/configuration/policy/list/supervisory_disconnect.py +0 -52
- catalystwan/endpoints/configuration/policy/list/threat_grid_api_key.py +0 -52
- catalystwan/endpoints/configuration/policy/list/translation_profile.py +0 -52
- catalystwan/endpoints/configuration/policy/list/translation_rules.py +0 -52
- catalystwan/endpoints/configuration/policy/list/trunkgroup.py +0 -48
- catalystwan/endpoints/configuration/policy/list/umbrella_data.py +0 -52
- catalystwan/endpoints/configuration/policy/voice_template.py +0 -39
- catalystwan/endpoints/configuration/policy_group.py +0 -30
- catalystwan/endpoints/configuration/topology_group.py +0 -51
- catalystwan/endpoints/configuration_general_template.py +0 -31
- catalystwan/endpoints/configuration_template_master.py +0 -48
- catalystwan/integration_tests/base.py +0 -81
- catalystwan/integration_tests/feature_profile/sdwan/__init__.py +0 -0
- catalystwan/integration_tests/feature_profile/sdwan/policy/__init__.py +0 -0
- catalystwan/integration_tests/feature_profile/sdwan/policy/base.py +0 -33
- catalystwan/integration_tests/feature_profile/sdwan/policy/test_extended_community.py +0 -33
- catalystwan/integration_tests/feature_profile/sdwan/policy/test_security_app_list.py +0 -32
- catalystwan/integration_tests/feature_profile/sdwan/test_application_priority.py +0 -433
- catalystwan/integration_tests/feature_profile/sdwan/test_cli.py +0 -54
- catalystwan/integration_tests/feature_profile/sdwan/test_dns_security.py +0 -106
- catalystwan/integration_tests/feature_profile/sdwan/test_other.py +0 -49
- catalystwan/integration_tests/feature_profile/sdwan/test_service.py +0 -1078
- catalystwan/integration_tests/feature_profile/sdwan/test_sig_security.py +0 -322
- catalystwan/integration_tests/feature_profile/sdwan/test_ssl_decryption.py +0 -85
- catalystwan/integration_tests/feature_profile/sdwan/test_system.py +0 -368
- catalystwan/integration_tests/feature_profile/sdwan/test_tracker.py +0 -127
- catalystwan/integration_tests/feature_profile/sdwan/test_transport.py +0 -1698
- catalystwan/integration_tests/feature_profile/sdwan/topology/test_topology.py +0 -93
- catalystwan/integration_tests/feature_profile/test_parcel.py +0 -54
- catalystwan/integration_tests/profile_builder/__init__.py +0 -0
- catalystwan/integration_tests/profile_builder/test_pb_service.py +0 -197
- catalystwan/integration_tests/profile_builder/test_pb_transport.py +0 -226
- catalystwan/integration_tests/profile_builder/test_pb_uc_voice.py +0 -277
- catalystwan/integration_tests/test_data/__init__.py +0 -117
- catalystwan/integration_tests/test_network_hierarchy.py +0 -82
- catalystwan/integration_tests/test_settings.py +0 -30
- catalystwan/models/configuration/feature_profile/parcel.py +0 -245
- catalystwan/models/configuration/feature_profile/sdwan/acl/__init__.py +0 -13
- catalystwan/models/configuration/feature_profile/sdwan/acl/ipv4acl.py +0 -298
- catalystwan/models/configuration/feature_profile/sdwan/acl/ipv6acl.py +0 -344
- catalystwan/models/configuration/feature_profile/sdwan/application_priority/__init__.py +0 -218
- catalystwan/models/configuration/feature_profile/sdwan/application_priority/cloud_probe.py +0 -61
- catalystwan/models/configuration/feature_profile/sdwan/application_priority/policy_settings.py +0 -31
- catalystwan/models/configuration/feature_profile/sdwan/application_priority/qos_policy.py +0 -102
- catalystwan/models/configuration/feature_profile/sdwan/application_priority/traffic_policy.py +0 -1057
- catalystwan/models/configuration/feature_profile/sdwan/cli/__init__.py +0 -23
- catalystwan/models/configuration/feature_profile/sdwan/cli/config.py +0 -18
- catalystwan/models/configuration/feature_profile/sdwan/cli/full_config.py +0 -15
- catalystwan/models/configuration/feature_profile/sdwan/dns_security/__init__.py +0 -13
- catalystwan/models/configuration/feature_profile/sdwan/dns_security/dns.py +0 -110
- catalystwan/models/configuration/feature_profile/sdwan/embedded_security/__init__.py +0 -23
- catalystwan/models/configuration/feature_profile/sdwan/embedded_security/ngfirewall.py +0 -493
- catalystwan/models/configuration/feature_profile/sdwan/embedded_security/policy.py +0 -171
- catalystwan/models/configuration/feature_profile/sdwan/other/__init__.py +0 -25
- catalystwan/models/configuration/feature_profile/sdwan/other/cybervision.py +0 -44
- catalystwan/models/configuration/feature_profile/sdwan/other/thousandeyes.py +0 -147
- catalystwan/models/configuration/feature_profile/sdwan/other/ucse.py +0 -110
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/as_path.py +0 -22
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/extended_community.py +0 -34
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/ipv4_network_object.py +0 -15
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/ipv4_service_object.py +0 -254
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/mirror.py +0 -27
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/network_object_group.py +0 -15
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/object_group.py +0 -15
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/service_object_group.py +0 -21
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/aip.py +0 -64
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/amp.py +0 -79
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/identity.py +0 -30
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/intrusion_prevention.py +0 -58
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/object_group.py +0 -72
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/rule_set.py +0 -137
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/scalable_group_tag.py +0 -26
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/ssl_decryption.py +0 -126
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/ssl_decryption_profile.py +0 -165
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/url_filtering.py +0 -148
- catalystwan/models/configuration/feature_profile/sdwan/routing/__init__.py +0 -26
- catalystwan/models/configuration/feature_profile/sdwan/routing/bgp.py +0 -609
- catalystwan/models/configuration/feature_profile/sdwan/service/__init__.py +0 -91
- catalystwan/models/configuration/feature_profile/sdwan/service/dual_router_ha.py +0 -26
- catalystwan/models/configuration/feature_profile/sdwan/service/lan/multilink.py +0 -101
- catalystwan/models/configuration/feature_profile/sdwan/service/service_chain.py +0 -38
- catalystwan/models/configuration/feature_profile/sdwan/sig_security/__init__.py +0 -19
- catalystwan/models/configuration/feature_profile/sdwan/sig_security/sig_security.py +0 -379
- catalystwan/models/configuration/feature_profile/sdwan/system/__init__.py +0 -59
- catalystwan/models/configuration/feature_profile/sdwan/system/banner.py +0 -30
- catalystwan/models/configuration/feature_profile/sdwan/system/basic.py +0 -290
- catalystwan/models/configuration/feature_profile/sdwan/system/bfd.py +0 -69
- catalystwan/models/configuration/feature_profile/sdwan/system/device_access.py +0 -157
- catalystwan/models/configuration/feature_profile/sdwan/system/device_access_ipv6.py +0 -157
- catalystwan/models/configuration/feature_profile/sdwan/system/global_parcel.py +0 -163
- catalystwan/models/configuration/feature_profile/sdwan/system/logging_parcel.py +0 -162
- catalystwan/models/configuration/feature_profile/sdwan/system/mrf.py +0 -75
- catalystwan/models/configuration/feature_profile/sdwan/system/ntp.py +0 -103
- catalystwan/models/configuration/feature_profile/sdwan/system/omp.py +0 -120
- catalystwan/models/configuration/feature_profile/sdwan/system/security.py +0 -179
- catalystwan/models/configuration/feature_profile/sdwan/system/snmp.py +0 -173
- catalystwan/models/configuration/feature_profile/sdwan/topology/__init__.py +0 -29
- catalystwan/models/configuration/feature_profile/sdwan/topology/custom_control.py +0 -425
- catalystwan/models/configuration/feature_profile/sdwan/topology/hubspoke.py +0 -60
- catalystwan/models/configuration/feature_profile/sdwan/topology/mesh.py +0 -23
- catalystwan/models/configuration/feature_profile/sdwan/trackers/__init__.py +0 -36
- catalystwan/models/configuration/feature_profile/sdwan/trackers/tracker.py +0 -96
- catalystwan/models/configuration/feature_profile/sdwan/trackers/tracker_group.py +0 -63
- catalystwan/models/configuration/feature_profile/sdwan/transport/__init__.py +0 -93
- catalystwan/models/configuration/feature_profile/sdwan/transport/cellular_profile.py +0 -71
- catalystwan/models/configuration/feature_profile/sdwan/transport/gps.py +0 -37
- catalystwan/models/configuration/feature_profile/sdwan/transport/management/ethernet.py +0 -121
- catalystwan/models/configuration/feature_profile/sdwan/transport/t1e1controller.py +0 -124
- catalystwan/models/configuration/feature_profile/sdwan/transport/vpn.py +0 -285
- catalystwan/models/configuration/feature_profile/sdwan/transport/wan/interface/cellular.py +0 -173
- catalystwan/models/configuration/feature_profile/sdwan/transport/wan/interface/ethernet.py +0 -389
- catalystwan/models/configuration/feature_profile/sdwan/transport/wan/interface/gre.py +0 -46
- catalystwan/models/configuration/feature_profile/sdwan/transport/wan/interface/ipsec.py +0 -137
- catalystwan/models/configuration/feature_profile/sdwan/transport/wan/interface/multilink.py +0 -219
- catalystwan/models/configuration/feature_profile/sdwan/transport/wan/interface/protocol_over.py +0 -405
- catalystwan/models/configuration/feature_profile/sdwan/transport/wan/interface/t1e1serial.py +0 -195
- catalystwan/models/configuration/feature_profile/sdwan/uc_voice/__init__.py +0 -62
- catalystwan/models/configuration/feature_profile/sdwan/uc_voice/analog_interface.py +0 -436
- catalystwan/models/configuration/feature_profile/sdwan/uc_voice/call_routing.py +0 -179
- catalystwan/models/configuration/feature_profile/sdwan/uc_voice/digital_interface.py +0 -380
- catalystwan/models/configuration/feature_profile/sdwan/uc_voice/dsp_farm.py +0 -193
- catalystwan/models/configuration/feature_profile/sdwan/uc_voice/media_profile.py +0 -17
- catalystwan/models/configuration/feature_profile/sdwan/uc_voice/server_group.py +0 -51
- catalystwan/models/configuration/feature_profile/sdwan/uc_voice/srst.py +0 -86
- catalystwan/models/configuration/feature_profile/sdwan/uc_voice/supervisory_disconnect.py +0 -69
- catalystwan/models/configuration/feature_profile/sdwan/uc_voice/translation_profile.py +0 -42
- catalystwan/models/configuration/feature_profile/sdwan/uc_voice/translation_rule.py +0 -31
- catalystwan/models/configuration/feature_profile/sdwan/uc_voice/trunk_group.py +0 -26
- catalystwan/models/configuration/feature_profile/sdwan/uc_voice/voice_global.py +0 -57
- catalystwan/models/configuration/feature_profile/sdwan/uc_voice/voice_tenant.py +0 -40
- catalystwan/models/configuration/network_hierarchy/__init__.py +0 -24
- catalystwan/models/configuration/network_hierarchy/cflowd.py +0 -128
- catalystwan/models/configuration/network_hierarchy/node.py +0 -88
- catalystwan/models/configuration/network_hierarchy/security_logging.py +0 -91
- catalystwan/models/configuration/packages.py +0 -57
- catalystwan/models/configuration/policy_group.py +0 -74
- catalystwan/models/configuration/topology_group.py +0 -52
- catalystwan/models/policy/definition/aip.py +0 -60
- catalystwan/models/policy/definition/amp.py +0 -65
- catalystwan/models/policy/definition/app_route.py +0 -246
- catalystwan/models/policy/definition/cflowd.py +0 -95
- catalystwan/models/policy/definition/dial_peer.py +0 -60
- catalystwan/models/policy/definition/dns_security.py +0 -130
- catalystwan/models/policy/definition/fxo_port.py +0 -63
- catalystwan/models/policy/definition/fxs_did_port.py +0 -58
- catalystwan/models/policy/definition/fxs_port.py +0 -56
- catalystwan/models/policy/definition/intrusion_prevention.py +0 -55
- catalystwan/models/policy/definition/pri_isdn_port.py +0 -48
- catalystwan/models/policy/definition/route_policy.py +0 -187
- catalystwan/models/policy/definition/srst_phone_profile.py +0 -37
- catalystwan/models/policy/definition/ssl_decryption.py +0 -209
- catalystwan/models/policy/definition/ssl_decryption_utd_profile.py +0 -88
- catalystwan/models/policy/definition/url_filtering.py +0 -70
- catalystwan/models/policy/definition/vpn_qos_map.py +0 -46
- catalystwan/models/policy/list/app.py +0 -44
- catalystwan/models/policy/list/app_probe.py +0 -42
- catalystwan/models/policy/list/as_path.py +0 -30
- catalystwan/models/policy/list/class_map.py +0 -30
- catalystwan/models/policy/list/color.py +0 -28
- catalystwan/models/policy/list/communities.py +0 -83
- catalystwan/models/policy/list/data_ipv6_prefix.py +0 -30
- catalystwan/models/policy/list/data_prefix.py +0 -30
- catalystwan/models/policy/list/fax_protocol.py +0 -45
- catalystwan/models/policy/list/fqdn.py +0 -24
- catalystwan/models/policy/list/geo_location.py +0 -33
- catalystwan/models/policy/list/identity.py +0 -29
- catalystwan/models/policy/list/ips_signature.py +0 -27
- catalystwan/models/policy/list/ipv6_prefix.py +0 -33
- catalystwan/models/policy/list/local_app.py +0 -45
- catalystwan/models/policy/list/local_domain.py +0 -36
- catalystwan/models/policy/list/media_profile.py +0 -44
- catalystwan/models/policy/list/mirror.py +0 -27
- catalystwan/models/policy/list/modem_pass_through.py +0 -27
- catalystwan/models/policy/list/policer.py +0 -39
- catalystwan/models/policy/list/port.py +0 -33
- catalystwan/models/policy/list/preferred_color_group.py +0 -82
- catalystwan/models/policy/list/prefix.py +0 -33
- catalystwan/models/policy/list/protocol_name.py +0 -26
- catalystwan/models/policy/list/region.py +0 -45
- catalystwan/models/policy/list/scalable_group_tag.py +0 -30
- catalystwan/models/policy/list/site.py +0 -34
- catalystwan/models/policy/list/sla.py +0 -77
- catalystwan/models/policy/list/supervisory_disconnect.py +0 -62
- catalystwan/models/policy/list/threat_grid_api_key.py +0 -32
- catalystwan/models/policy/list/tloc.py +0 -32
- catalystwan/models/policy/list/translation_profile.py +0 -32
- catalystwan/models/policy/list/translation_rules.py +0 -29
- catalystwan/models/policy/list/trunkgroup.py +0 -56
- catalystwan/models/policy/list/umbrella_data.py +0 -30
- catalystwan/models/policy/list/url.py +0 -39
- catalystwan/models/policy/list/vpn.py +0 -40
- catalystwan/models/policy/list/zone.py +0 -46
- catalystwan/models/policy/voice.py +0 -77
- catalystwan/models/settings.py +0 -41
- catalystwan/models/templates.py +0 -79
- catalystwan/tests/builders/test_report.py +0 -60
- catalystwan/tests/builders/uc_voice.py +0 -85
- catalystwan/tests/models/__init__.py +0 -0
- catalystwan/tests/models/configuration/feature_profile/sdwan/policy_object/security/test_url.py +0 -73
- catalystwan/tests/models/test_digital_interface.py +0 -56
- catalystwan/tests/templates/definitions/aaa_basic.json +0 -96
- catalystwan/tests/templates/definitions/aaa_complex.json +0 -464
- catalystwan/tests/templates/definitions/cisco_aaa_complex.json +0 -361
- catalystwan/tests/templates/definitions/cisco_logging_complex.json +0 -268
- catalystwan/tests/templates/definitions/cisco_ntp_complex.json +0 -143
- catalystwan/tests/templates/definitions/cisco_omp_complex.json +0 -175
- catalystwan/tests/templates/definitions/cisco_ospf_complex.json +0 -302
- catalystwan/tests/templates/definitions/cisco_sig.json +0 -405
- catalystwan/tests/templates/definitions/cisco_snmp_complex.json +0 -258
- catalystwan/tests/templates/definitions/cisco_system_complex.json +0 -502
- catalystwan/tests/templates/definitions/cisco_vpn_interface_complex.json +0 -821
- catalystwan/tests/templates/definitions/omp_vsmart_1.json +0 -26
- catalystwan/tests/templates/definitions/omp_vsmart_complex.json +0 -73
- catalystwan/tests/templates/definitions/security_vsmart_complex.json +0 -24
- catalystwan/tests/templates/definitions/system_vsmart_complex.json +0 -193
- catalystwan/tests/templates/definitions/vpn_vsmart_basic.json +0 -17
- catalystwan/tests/templates/definitions/vpn_vsmart_complex.json +0 -179
- catalystwan/tests/templates/definitions/vpn_vsmart_interface_basic.json +0 -42
- catalystwan/tests/templates/definitions/vpn_vsmart_interface_complex.json +0 -208
- catalystwan/tests/templates/models/aaa.py +0 -106
- catalystwan/tests/templates/models/cisco_logging.py +0 -65
- catalystwan/tests/templates/models/cisco_ntp.py +0 -17
- catalystwan/tests/templates/models/cisco_omp.py +0 -37
- catalystwan/tests/templates/models/cisco_ospf.py +0 -60
- catalystwan/tests/templates/models/cisco_secure_internet_gateway.py +0 -95
- catalystwan/tests/templates/models/cisco_snmp.py +0 -40
- catalystwan/tests/templates/models/cisco_vpn_interface.py +0 -200
- catalystwan/tests/templates/models/security_vsmart.py +0 -11
- catalystwan/tests/templates/models/system_vsmart.py +0 -37
- catalystwan/tests/templates/models/vpn_vsmart.py +0 -32
- catalystwan/tests/templates/models/vpn_vsmart_interface.py +0 -54
- catalystwan/tests/templates/schemas/aaa.json +0 -1096
- catalystwan/tests/templates/schemas/cisco_logging.json +0 -577
- catalystwan/tests/templates/schemas/cisco_ntp.json +0 -265
- catalystwan/tests/templates/schemas/cisco_omp.json +0 -479
- catalystwan/tests/templates/schemas/cisco_ospf.json +0 -908
- catalystwan/tests/templates/schemas/cisco_secure_internet_gateway.json +0 -1520
- catalystwan/tests/templates/schemas/cisco_snmp.json +0 -561
- catalystwan/tests/templates/schemas/cisco_vpn_interface.json +0 -3348
- catalystwan/tests/templates/schemas/security-vsmart.json +0 -58
- catalystwan/tests/templates/schemas/system-vsmart.json +0 -2585
- catalystwan/tests/templates/schemas/vpn-vsmart-interface.json +0 -859
- catalystwan/tests/templates/schemas/vpn-vsmart.json +0 -445
- catalystwan/tests/templates/test_find_template_values_2.py +0 -193
- catalystwan/tests/test_feature_profile_api.py +0 -282
- catalystwan/tests/test_models_common.py +0 -53
- catalystwan/utils/model.py +0 -48
- catalystwan/utils/persona.py +0 -5
- catalystwan/utils/type_check.py +0 -22
- catalystwan/workflows/backup_restore_device_templates.py +0 -467
- catalystwan-0.41.2.dev9.dist-info/RECORD +0 -641
- /catalystwan/tests/templates/definitions/{cisco_banner.json → banner_1.json} +0 -0
- {catalystwan-0.41.2.dev9.dist-info → catalystwan-0.41.3.dist-info}/LICENSE +0 -0
- {catalystwan-0.41.2.dev9.dist-info → catalystwan-0.41.3.dist-info}/WHEEL +0 -0
|
@@ -1,73 +1,53 @@
|
|
|
1
1
|
# Copyright 2023 Cisco Systems, Inc. and its affiliates
|
|
2
2
|
|
|
3
|
+
from enum import Enum
|
|
3
4
|
from pathlib import Path
|
|
4
|
-
from typing import ClassVar, List,
|
|
5
|
+
from typing import ClassVar, List, Optional
|
|
5
6
|
|
|
6
7
|
from pydantic import ConfigDict, Field, field_validator
|
|
7
8
|
|
|
8
|
-
from catalystwan.api.templates.bool_str import BoolStr
|
|
9
9
|
from catalystwan.api.templates.feature_template import FeatureTemplate, FeatureTemplateValidator
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Role
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
Nat = Literal["NAT64", "NAT66"]
|
|
16
|
-
AdvertiseProtocol = Literal[
|
|
17
|
-
"bgp", "ospf", "ospfv3", "connected", "static", "network", "aggregate", "eigrp", "lisp", "isis"
|
|
18
|
-
]
|
|
19
|
-
AdvertiseProtocolSubType = Literal["external"]
|
|
20
|
-
Region = Literal["core", "access"]
|
|
21
|
-
Ipv6AdvertiseProtocol = Literal["bgp", "ospf", "connected", "static", "network", "aggregate"]
|
|
22
|
-
Ipv6AdvertiseProtocolSubType = Literal["external"]
|
|
23
|
-
LeakFromGlobalProtocol = Literal["all", "static", "mobile", "connected", "rip", "odr"]
|
|
24
|
-
Overload = Literal["true", "false"]
|
|
25
|
-
RouteImportProtocol = Literal["static", "connected", "bgp", "ospf"]
|
|
26
|
-
RouteImportProtocolSubType = Literal["external"]
|
|
27
|
-
RouteImportRedistributeProtocol = Literal["bgp", "eigrp", "ospf"]
|
|
28
|
-
RouteImportFromProtocol = Literal["static", "connected", "bgp", "ospf", "eigrp"]
|
|
29
|
-
RouteImportFromProtocolSubType = Literal["external"]
|
|
30
|
-
RouteImportFromRedistributeProtocol = Literal["bgp", "eigrp", "ospf"]
|
|
31
|
-
RouteExportProtocol = Literal["static", "connected", "bgp", "eigrp", "ospf"]
|
|
32
|
-
RouteExportProtocolSubType = Literal["external"]
|
|
33
|
-
RouteExportRedistributeProtocol = Literal["bgp", "ospf"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class Role(str, Enum):
|
|
13
|
+
PRIMARY = "primary"
|
|
14
|
+
SECONDARY = "secondary"
|
|
34
15
|
|
|
35
16
|
|
|
36
17
|
class Dns(FeatureTemplateValidator):
|
|
37
|
-
dns_addr: Optional[str] = Field(
|
|
38
|
-
|
|
39
|
-
)
|
|
40
|
-
role: Role = Field(default="primary", description="The role of the DNS server, either 'PRIMARY' or 'SECONDARY'.")
|
|
18
|
+
dns_addr: Optional[str] = Field(default=None, json_schema_extra={"vmanage_key": "dns-addr"})
|
|
19
|
+
role: Role = Role.PRIMARY
|
|
41
20
|
model_config = ConfigDict(populate_by_name=True)
|
|
42
21
|
|
|
43
22
|
|
|
44
23
|
class DnsIpv6(FeatureTemplateValidator):
|
|
45
|
-
dns_addr: Optional[str] = Field(
|
|
46
|
-
|
|
47
|
-
)
|
|
48
|
-
role: Optional[Role] = Field(
|
|
49
|
-
default="primary",
|
|
50
|
-
description="The role of the DNS server for IPv6, optionally either 'PRIMARY' or 'SECONDARY'.",
|
|
51
|
-
)
|
|
24
|
+
dns_addr: Optional[str] = Field(default=None, json_schema_extra={"vmanage_key": "dns-addr"})
|
|
25
|
+
role: Optional[Role] = Role.PRIMARY
|
|
52
26
|
model_config = ConfigDict(populate_by_name=True)
|
|
53
27
|
|
|
54
28
|
|
|
55
29
|
class Host(FeatureTemplateValidator):
|
|
56
|
-
hostname: str
|
|
57
|
-
ip: List[str]
|
|
30
|
+
hostname: str
|
|
31
|
+
ip: List[str]
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class SvcType(str, Enum):
|
|
35
|
+
FW = "FW"
|
|
36
|
+
IDS = "IDS"
|
|
37
|
+
IDP = "IDP"
|
|
38
|
+
NETSVC1 = "netsvc1"
|
|
39
|
+
NETSVC2 = "netsvc2"
|
|
40
|
+
NETSVC3 = "netsvc3"
|
|
41
|
+
NETSVC4 = "netsvc4"
|
|
42
|
+
TE = "TE"
|
|
43
|
+
APPQOE = "appqoe"
|
|
58
44
|
|
|
59
45
|
|
|
60
46
|
class Service(FeatureTemplateValidator):
|
|
61
|
-
svc_type: SvcType = Field(
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
interface: Optional[str] = Field(default=None, description="The interface associated with the service.")
|
|
66
|
-
track_enable: BoolStr = Field(
|
|
67
|
-
default=True,
|
|
68
|
-
description="Indicates whether tracking is enabled for the service.",
|
|
69
|
-
json_schema_extra={"vmanage_key": "track-enable"},
|
|
70
|
-
)
|
|
47
|
+
svc_type: SvcType = Field(json_schema_extra={"vmanage_key": "svc-type"})
|
|
48
|
+
address: Optional[List[str]] = None
|
|
49
|
+
interface: Optional[str] = None
|
|
50
|
+
track_enable: bool = Field(True, json_schema_extra={"vmanage_key": "track-enable"})
|
|
71
51
|
model_config = ConfigDict(populate_by_name=True)
|
|
72
52
|
|
|
73
53
|
@field_validator("track_enable")
|
|
@@ -76,450 +56,345 @@ class Service(FeatureTemplateValidator):
|
|
|
76
56
|
return str(value).lower()
|
|
77
57
|
|
|
78
58
|
|
|
59
|
+
class ServiceRouteService(str, Enum):
|
|
60
|
+
SIG = "sig"
|
|
61
|
+
|
|
62
|
+
|
|
79
63
|
class ServiceRoute(FeatureTemplateValidator):
|
|
80
|
-
prefix: str
|
|
81
|
-
vpn: int
|
|
82
|
-
service: ServiceRouteService =
|
|
64
|
+
prefix: str
|
|
65
|
+
vpn: int
|
|
66
|
+
service: ServiceRouteService = ServiceRouteService.SIG
|
|
83
67
|
|
|
84
68
|
|
|
85
69
|
class NextHop(FeatureTemplateValidator):
|
|
86
|
-
address: Optional[str] =
|
|
87
|
-
distance: Optional[int] =
|
|
70
|
+
address: Optional[str] = None
|
|
71
|
+
distance: Optional[int] = 1
|
|
88
72
|
|
|
89
73
|
|
|
90
74
|
class NextHopWithTrack(FeatureTemplateValidator):
|
|
91
|
-
address: Optional[str] =
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
distance: Optional[int] = Field(
|
|
95
|
-
default=1, description="The administrative distance of the next hop that requires tracking."
|
|
96
|
-
)
|
|
97
|
-
tracker: str = Field(description="The tracker associated with this next hop.")
|
|
75
|
+
address: Optional[str] = None
|
|
76
|
+
distance: Optional[int] = 1
|
|
77
|
+
tracker: str
|
|
98
78
|
|
|
99
79
|
|
|
100
80
|
class RouteInterface(FeatureTemplateValidator):
|
|
101
|
-
interface_name: str = Field(
|
|
102
|
-
description="The name of the interface used for routing.", json_schema_extra={"vmanage_key": "interface-name"}
|
|
103
|
-
)
|
|
81
|
+
interface_name: str = Field(json_schema_extra={"vmanage_key": "interface-name"})
|
|
104
82
|
interface_next_hop: Optional[List[NextHop]] = Field(
|
|
105
|
-
default=None,
|
|
106
|
-
description="A list of next hops associated with the interface for routing purposes.",
|
|
107
|
-
json_schema_extra={"vmanage_key": "interface-next-hop", "priority_order": ["address", "distance"]},
|
|
83
|
+
default=None, json_schema_extra={"vmanage_key": "interface-next-hop", "priority_order": ["address", "distance"]}
|
|
108
84
|
)
|
|
109
85
|
model_config = ConfigDict(populate_by_name=True)
|
|
110
86
|
|
|
111
87
|
|
|
112
88
|
class Routev4(FeatureTemplateValidator):
|
|
113
|
-
prefix: Optional[str] =
|
|
89
|
+
prefix: Optional[str] = None
|
|
114
90
|
next_hop: Optional[List[NextHop]] = Field(
|
|
115
|
-
default=None,
|
|
116
|
-
description="A list of IPv4 next hops for the route.",
|
|
117
|
-
json_schema_extra={"vmanage_key": "next-hop", "priority_order": ["address", "distance"]},
|
|
91
|
+
default=None, json_schema_extra={"vmanage_key": "next-hop", "priority_order": ["address", "distance"]}
|
|
118
92
|
)
|
|
119
93
|
next_hop_with_track: Optional[List[NextHopWithTrack]] = Field(
|
|
120
|
-
default=None,
|
|
121
|
-
description="A list of IPv4 next hops with tracking for the route.",
|
|
122
|
-
json_schema_extra={"vmanage_key": "next-hop-with-track"},
|
|
94
|
+
default=None, json_schema_extra={"vmanage_key": "next-hop-with-track"}
|
|
123
95
|
)
|
|
124
96
|
route_interface: Optional[RouteInterface] = Field(
|
|
125
|
-
default=None,
|
|
126
|
-
description="The interface configuration for the IPv4 static route.",
|
|
127
|
-
json_schema_extra={"vmanage_key": "route-interface"},
|
|
97
|
+
default=None, json_schema_extra={"vmanage_key": "route-interface"}
|
|
128
98
|
)
|
|
129
|
-
null0: Optional[
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
vpn: Optional[int] = Field(
|
|
134
|
-
default=None, description="The VPN instance identifier associated with the static route."
|
|
135
|
-
)
|
|
136
|
-
dhcp: Optional[BoolStr] = Field(
|
|
137
|
-
default=None, description="A flag indicating whether DHCP is used for this static route."
|
|
138
|
-
)
|
|
139
|
-
|
|
99
|
+
null0: Optional[bool] = None
|
|
100
|
+
distance: Optional[int] = None
|
|
101
|
+
vpn: Optional[int] = None
|
|
102
|
+
dhcp: Optional[bool] = None
|
|
140
103
|
model_config = ConfigDict(populate_by_name=True)
|
|
141
104
|
|
|
142
105
|
|
|
143
106
|
class NextHopv6(FeatureTemplateValidator):
|
|
144
|
-
address: str
|
|
145
|
-
distance: Optional[int] =
|
|
107
|
+
address: str
|
|
108
|
+
distance: Optional[int] = 1
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
class Nat(str, Enum):
|
|
112
|
+
NAT64 = "NAT64"
|
|
113
|
+
NAT66 = "NAT66"
|
|
146
114
|
|
|
147
115
|
|
|
148
116
|
class Routev6(FeatureTemplateValidator):
|
|
149
|
-
prefix: str
|
|
150
|
-
next_hop: Optional[List[NextHopv6]] = Field(
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
)
|
|
155
|
-
null0: Optional[BoolStr] = Field(
|
|
156
|
-
default=None, description="A flag indicating whether to route IPv6 traffic to null0 for this static route."
|
|
157
|
-
)
|
|
158
|
-
vpn: Optional[int] = Field(
|
|
159
|
-
default=None, description="The VPN instance identifier associated with the IPv6 static route."
|
|
160
|
-
)
|
|
161
|
-
nat: Optional[Nat] = Field(
|
|
162
|
-
default=None, description="The type of NAT to apply for the IPv6 static route, if applicable."
|
|
163
|
-
)
|
|
117
|
+
prefix: str
|
|
118
|
+
next_hop: Optional[List[NextHopv6]] = Field(default=None, json_schema_extra={"vmanage_key": "next-hop"})
|
|
119
|
+
null0: Optional[bool] = None
|
|
120
|
+
vpn: Optional[int] = None
|
|
121
|
+
nat: Optional[Nat] = None
|
|
164
122
|
model_config = ConfigDict(populate_by_name=True)
|
|
165
123
|
|
|
166
124
|
|
|
167
125
|
class GreRoute(FeatureTemplateValidator):
|
|
168
|
-
prefix: str
|
|
169
|
-
vpn: int
|
|
170
|
-
interface: Optional[List[str]] =
|
|
171
|
-
default=None, description="A list of interfaces associated with the GRE route."
|
|
172
|
-
)
|
|
126
|
+
prefix: str
|
|
127
|
+
vpn: int
|
|
128
|
+
interface: Optional[List[str]] = None
|
|
173
129
|
|
|
174
130
|
|
|
175
131
|
class IpsecRoute(FeatureTemplateValidator):
|
|
176
|
-
prefix: str
|
|
177
|
-
vpn: int
|
|
178
|
-
interface: Optional[List[str]] =
|
|
179
|
-
|
|
180
|
-
|
|
132
|
+
prefix: str
|
|
133
|
+
vpn: int
|
|
134
|
+
interface: Optional[List[str]] = None
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
class AdvertiseProtocol(str, Enum):
|
|
138
|
+
BGP = "bgp"
|
|
139
|
+
OSPF = "ospf"
|
|
140
|
+
OSPFV3 = "ospfv3"
|
|
141
|
+
CONNECTED = "connected"
|
|
142
|
+
STATIC = "static"
|
|
143
|
+
NETWORK = "network"
|
|
144
|
+
AGGREGATE = "aggregate"
|
|
145
|
+
EIGRP = "eigrp"
|
|
146
|
+
LISP = "lisp"
|
|
147
|
+
ISIS = "isis"
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
class AdvertiseProtocolSubType(str, Enum):
|
|
151
|
+
EXTERNAL = "external"
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
class Region(str, Enum):
|
|
155
|
+
CORE = "core"
|
|
156
|
+
ACCESS = "access"
|
|
181
157
|
|
|
182
158
|
|
|
183
159
|
class PrefixList(FeatureTemplateValidator):
|
|
184
|
-
prefix_entry: str = Field(
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
aggregate_only: Optional[BoolStr] = Field(
|
|
188
|
-
default=None,
|
|
189
|
-
description="A flag indicating if only aggregate routes should be considered.",
|
|
190
|
-
json_schema_extra={"vmanage_key": "aggregate-only"},
|
|
191
|
-
)
|
|
192
|
-
region: Optional[Region] = Field(default=None, description="The network region where the prefix list is applied.")
|
|
160
|
+
prefix_entry: str = Field(json_schema_extra={"vmanage_key": "prefix-entry"})
|
|
161
|
+
aggregate_only: Optional[bool] = Field(default=None, json_schema_extra={"vmanage_key": "aggregate-only"})
|
|
162
|
+
region: Optional[Region]
|
|
193
163
|
model_config = ConfigDict(populate_by_name=True)
|
|
194
164
|
|
|
195
165
|
|
|
196
166
|
class Advertise(FeatureTemplateValidator):
|
|
197
|
-
protocol: AdvertiseProtocol
|
|
198
|
-
route_policy: Optional[str] = Field(
|
|
199
|
-
default=None,
|
|
200
|
-
description="The route policy associated with advertisement.",
|
|
201
|
-
json_schema_extra={"vmanage_key": "route-policy"},
|
|
202
|
-
)
|
|
167
|
+
protocol: AdvertiseProtocol
|
|
168
|
+
route_policy: Optional[str] = Field(default=None, json_schema_extra={"vmanage_key": "route-policy"})
|
|
203
169
|
protocol_sub_type: Optional[List[AdvertiseProtocolSubType]] = Field(
|
|
204
|
-
default=None,
|
|
205
|
-
description="A list of subtypes for the advertisement protocol.",
|
|
206
|
-
json_schema_extra={"vmanage_key": "protocol-sub-type"},
|
|
207
|
-
)
|
|
208
|
-
prefix_list: Optional[List[PrefixList]] = Field(
|
|
209
|
-
default=None,
|
|
210
|
-
description="A list of prefix lists associated with the advertisement settings.",
|
|
211
|
-
json_schema_extra={"vmanage_key": "prefix-list"},
|
|
170
|
+
default=None, json_schema_extra={"vmanage_key": "protocol-sub-type"}
|
|
212
171
|
)
|
|
172
|
+
prefix_list: Optional[List[PrefixList]] = Field(default=None, json_schema_extra={"vmanage_key": "prefix-list"})
|
|
213
173
|
model_config = ConfigDict(populate_by_name=True)
|
|
214
174
|
|
|
215
175
|
|
|
176
|
+
class Ipv6AdvertiseProtocol(str, Enum):
|
|
177
|
+
BGP = "bgp"
|
|
178
|
+
OSPF = "ospf"
|
|
179
|
+
CONNECTED = "connected"
|
|
180
|
+
STATIC = "static"
|
|
181
|
+
NETWORK = "network"
|
|
182
|
+
AGGREGATE = "aggregate"
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
class Ipv6AdvertiseProtocolSubType(str, Enum):
|
|
186
|
+
EXTERNAL = "external"
|
|
187
|
+
|
|
188
|
+
|
|
216
189
|
class Ipv6Advertise(FeatureTemplateValidator):
|
|
217
|
-
protocol: Ipv6AdvertiseProtocol
|
|
218
|
-
route_policy: Optional[str] = Field(
|
|
219
|
-
default=None,
|
|
220
|
-
description="The IPv6 route policy associated with advertisement.",
|
|
221
|
-
json_schema_extra={"vmanage_key": "route-policy"},
|
|
222
|
-
)
|
|
190
|
+
protocol: Ipv6AdvertiseProtocol
|
|
191
|
+
route_policy: Optional[str] = Field(default=None, json_schema_extra={"vmanage_key": "route-policy"})
|
|
223
192
|
protocol_sub_type: Optional[List[Ipv6AdvertiseProtocolSubType]] = Field(
|
|
224
|
-
default=None,
|
|
225
|
-
description="A list of subtypes for the IPv6 advertisement protocol.",
|
|
226
|
-
json_schema_extra={"vmanage_key": "protocol-sub-type"},
|
|
227
|
-
)
|
|
228
|
-
prefix_list: Optional[List[PrefixList]] = Field(
|
|
229
|
-
default=None,
|
|
230
|
-
description="A list of IPv6 prefix lists associated with the advertisement settings.",
|
|
231
|
-
json_schema_extra={"vmanage_key": "prefix-list"},
|
|
193
|
+
default=None, json_schema_extra={"vmanage_key": "protocol-sub-type"}
|
|
232
194
|
)
|
|
195
|
+
prefix_list: Optional[List[PrefixList]] = Field(default=None, json_schema_extra={"vmanage_key": "prefix-list"})
|
|
233
196
|
model_config = ConfigDict(populate_by_name=True)
|
|
234
197
|
|
|
235
198
|
|
|
199
|
+
class LeakFromGlobalProtocol(str, Enum):
|
|
200
|
+
ALL = "all"
|
|
201
|
+
STATIC = "static"
|
|
202
|
+
MOBILE = "mobile"
|
|
203
|
+
CONNECTED = "connected"
|
|
204
|
+
RIP = "rip"
|
|
205
|
+
ODR = "odr"
|
|
206
|
+
|
|
207
|
+
|
|
236
208
|
class Pool(FeatureTemplateValidator):
|
|
237
|
-
name: str
|
|
238
|
-
start_address: str = Field(
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
overload: Optional[BoolStr] = Field(
|
|
245
|
-
default=None, description="A flag indicating whether address overload is allowed."
|
|
246
|
-
)
|
|
247
|
-
leak_from_global: BoolStr = Field(description="A flag indicating whether leaking from the global table is enabled.")
|
|
248
|
-
leak_from_global_protocol: LeakFromGlobalProtocol = Field(
|
|
249
|
-
description="The protocol used for leaking from the global routing table."
|
|
250
|
-
)
|
|
251
|
-
leak_to_global: BoolStr = Field(description="A flag indicating whether leaking to the global table is enabled.")
|
|
209
|
+
name: str
|
|
210
|
+
start_address: str = Field(json_schema_extra={"vmanage_key": "start-address"})
|
|
211
|
+
end_address: str = Field(json_schema_extra={"vmanage_key": "end-address"})
|
|
212
|
+
overload: Optional[bool] = None
|
|
213
|
+
leak_from_global: bool
|
|
214
|
+
leak_from_global_protocol: LeakFromGlobalProtocol
|
|
215
|
+
leak_to_global: bool
|
|
252
216
|
model_config = ConfigDict(populate_by_name=True)
|
|
253
217
|
|
|
254
218
|
|
|
219
|
+
class Direction(str, Enum):
|
|
220
|
+
INSIDE = "inside"
|
|
221
|
+
OUTSIDE = "outside"
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
class Overload(str, Enum):
|
|
225
|
+
TRUE = "true"
|
|
226
|
+
FALSE = "false"
|
|
227
|
+
|
|
228
|
+
|
|
255
229
|
class Natpool(FeatureTemplateValidator):
|
|
256
|
-
name: int
|
|
257
|
-
prefix_length: Optional[int] = Field(
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
description="The starting IP address for the NAT pool range.",
|
|
264
|
-
json_schema_extra={"vmanage_key": "range-start"},
|
|
265
|
-
)
|
|
266
|
-
range_end: Optional[str] = Field(
|
|
267
|
-
default=None,
|
|
268
|
-
description="The ending IP address for the NAT pool range.",
|
|
269
|
-
json_schema_extra={"vmanage_key": "range-end"},
|
|
270
|
-
)
|
|
271
|
-
overload: Overload = Field(
|
|
272
|
-
default="true", description="Flag indicating whether NAT overload (PAT) is enabled for the pool."
|
|
273
|
-
)
|
|
274
|
-
direction: StaticNatDirection = Field(description="The direction (inside or outside) associated with the NAT pool.")
|
|
275
|
-
tracker_id: Optional[int] = Field(
|
|
276
|
-
default=None,
|
|
277
|
-
description="The tracker identifier associated with the NAT pool.",
|
|
278
|
-
json_schema_extra={"vmanage_key": "tracker-id"},
|
|
279
|
-
)
|
|
230
|
+
name: int
|
|
231
|
+
prefix_length: Optional[int] = Field(default=None, json_schema_extra={"vmanage_key": "prefix-length"})
|
|
232
|
+
range_start: Optional[str] = Field(default=None, json_schema_extra={"vmanage_key": "range-start"})
|
|
233
|
+
range_end: Optional[str] = Field(default=None, json_schema_extra={"vmanage_key": "range-end"})
|
|
234
|
+
overload: Overload = Overload.TRUE
|
|
235
|
+
direction: Direction
|
|
236
|
+
tracker_id: Optional[int] = Field(default=None, json_schema_extra={"vmanage_key": "tracker-id"})
|
|
280
237
|
model_config = ConfigDict(populate_by_name=True)
|
|
281
238
|
|
|
282
239
|
|
|
240
|
+
class StaticNatDirection(str, Enum):
|
|
241
|
+
INSIDE = "inside"
|
|
242
|
+
OUTSIDE = "outside"
|
|
243
|
+
|
|
244
|
+
|
|
283
245
|
class Static(FeatureTemplateValidator):
|
|
284
|
-
pool_name: Optional[int] = Field(
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
)
|
|
289
|
-
source_ip: Optional[str] = Field(
|
|
290
|
-
default=None,
|
|
291
|
-
description="The original source IP address to be translated by static NAT.",
|
|
292
|
-
json_schema_extra={"vmanage_key": "source-ip"},
|
|
293
|
-
)
|
|
294
|
-
translate_ip: Optional[str] = Field(
|
|
295
|
-
default=None,
|
|
296
|
-
description="The translated IP address used by static NAT.",
|
|
297
|
-
json_schema_extra={"vmanage_key": "translate-ip"},
|
|
298
|
-
)
|
|
299
|
-
static_nat_direction: StaticNatDirection = Field(
|
|
300
|
-
description="The direction (inside or outside) for the static NAT rule.",
|
|
301
|
-
json_schema_extra={"vmanage_key": "static-nat-direction"},
|
|
302
|
-
)
|
|
303
|
-
tracker_id: Optional[int] = Field(
|
|
304
|
-
default=None,
|
|
305
|
-
description="The tracker identifier associated with the static NAT rule.",
|
|
306
|
-
json_schema_extra={"vmanage_key": "tracker-id"},
|
|
307
|
-
)
|
|
246
|
+
pool_name: Optional[int] = Field(default=None, json_schema_extra={"vmanage_key": "pool-name"})
|
|
247
|
+
source_ip: Optional[str] = Field(default=None, json_schema_extra={"vmanage_key": "source-ip"})
|
|
248
|
+
translate_ip: Optional[str] = Field(default=None, json_schema_extra={"vmanage_key": "translate-ip"})
|
|
249
|
+
static_nat_direction: StaticNatDirection = Field(json_schema_extra={"vmanage_key": "static-nat-direction"})
|
|
250
|
+
tracker_id: Optional[int] = Field(default=None, json_schema_extra={"vmanage_key": "tracker-id"})
|
|
308
251
|
model_config = ConfigDict(populate_by_name=True)
|
|
309
252
|
|
|
310
253
|
|
|
311
254
|
class SubnetStatic(FeatureTemplateValidator):
|
|
312
|
-
source_ip_subnet: str = Field(
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
)
|
|
316
|
-
|
|
317
|
-
description="The translated IP subnet used by static NAT.",
|
|
318
|
-
json_schema_extra={"vmanage_key": "translate-ip-subnet"},
|
|
319
|
-
)
|
|
320
|
-
prefix_length: int = Field(
|
|
321
|
-
description="The prefix length for the translated IP subnet in static NAT.",
|
|
322
|
-
json_schema_extra={"vmanage_key": "prefix-length"},
|
|
323
|
-
)
|
|
324
|
-
static_nat_direction: StaticNatDirection = Field(
|
|
325
|
-
description="The direction (inside or outside) for the subnet static NAT rule.",
|
|
326
|
-
json_schema_extra={"vmanage_key": "static-nat-direction"},
|
|
327
|
-
)
|
|
328
|
-
tracker_id: Optional[int] = Field(
|
|
329
|
-
default=None,
|
|
330
|
-
description="The tracker identifier associated with the subnet static NAT rule.",
|
|
331
|
-
json_schema_extra={"vmanage_key": "tracker-id"},
|
|
332
|
-
)
|
|
255
|
+
source_ip_subnet: str = Field(json_schema_extra={"vmanage_key": "source-ip-subnet"})
|
|
256
|
+
translate_ip_subnet: str = Field(json_schema_extra={"vmanage_key": "translate-ip-subnet"})
|
|
257
|
+
prefix_length: int = Field(json_schema_extra={"vmanage_key": "prefix-length"})
|
|
258
|
+
static_nat_direction: StaticNatDirection = Field(json_schema_extra={"vmanage_key": "static-nat-direction"})
|
|
259
|
+
tracker_id: Optional[int] = Field(default=None, json_schema_extra={"vmanage_key": "tracker-id"})
|
|
333
260
|
model_config = ConfigDict(populate_by_name=True)
|
|
334
261
|
|
|
335
262
|
|
|
263
|
+
class Proto(str, Enum):
|
|
264
|
+
TCP = "tcp"
|
|
265
|
+
UDP = "udp"
|
|
266
|
+
|
|
267
|
+
|
|
336
268
|
class PortForward(FeatureTemplateValidator):
|
|
337
|
-
pool_name: Optional[int] = Field(
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
)
|
|
342
|
-
|
|
343
|
-
description="The source port number for the port forwarding rule.",
|
|
344
|
-
json_schema_extra={"vmanage_key": "source-port"},
|
|
345
|
-
)
|
|
346
|
-
translate_port: int = Field(
|
|
347
|
-
description="The destination port number to which the source port is translated.",
|
|
348
|
-
json_schema_extra={"vmanage_key": "translate-port"},
|
|
349
|
-
)
|
|
350
|
-
source_ip: str = Field(
|
|
351
|
-
description="The source IP address for the port forwarding rule.",
|
|
352
|
-
json_schema_extra={"vmanage_key": "source-ip"},
|
|
353
|
-
)
|
|
354
|
-
translate_ip: str = Field(
|
|
355
|
-
description="The destination IP address to which the source IP is translated.",
|
|
356
|
-
json_schema_extra={"vmanage_key": "translate-ip"},
|
|
357
|
-
)
|
|
358
|
-
proto: Protocol = Field(description="The protocol used in the port forwarding rule (TCP/UDP).")
|
|
269
|
+
pool_name: Optional[int] = Field(default=None, json_schema_extra={"vmanage_key": "pool-name"})
|
|
270
|
+
source_port: int = Field(json_schema_extra={"vmanage_key": "source-port"})
|
|
271
|
+
translate_port: int = Field(json_schema_extra={"vmanage_key": "translate-port"})
|
|
272
|
+
source_ip: str = Field(json_schema_extra={"vmanage_key": "source-ip"})
|
|
273
|
+
translate_ip: str = Field(json_schema_extra={"vmanage_key": "translate-ip"})
|
|
274
|
+
proto: Proto
|
|
359
275
|
model_config = ConfigDict(populate_by_name=True)
|
|
360
276
|
|
|
361
277
|
|
|
278
|
+
class RouteImportProtocol(str, Enum):
|
|
279
|
+
STATIC = "static"
|
|
280
|
+
CONNECTED = "connected"
|
|
281
|
+
BGP = "bgp"
|
|
282
|
+
OSPF = "ospf"
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
class RouteImportProtocolSubType(str, Enum):
|
|
286
|
+
EXTERNAL = "external"
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
class RouteImportRedistributeProtocol(str, Enum):
|
|
290
|
+
BGP = "bgp"
|
|
291
|
+
EIGRP = "eigrp"
|
|
292
|
+
OSPF = "ospf"
|
|
293
|
+
|
|
294
|
+
|
|
362
295
|
class RouteImportRedistribute(FeatureTemplateValidator):
|
|
363
|
-
protocol: RouteImportRedistributeProtocol
|
|
364
|
-
|
|
365
|
-
)
|
|
366
|
-
route_policy: Optional[str] = Field(
|
|
367
|
-
default=None,
|
|
368
|
-
description="The route policy that specifies the conditions for route redistribution.",
|
|
369
|
-
json_schema_extra={"vmanage_key": "route-policy"},
|
|
370
|
-
)
|
|
296
|
+
protocol: RouteImportRedistributeProtocol
|
|
297
|
+
route_policy: Optional[str] = Field(default=None, json_schema_extra={"vmanage_key": "route-policy"})
|
|
371
298
|
model_config = ConfigDict(populate_by_name=True)
|
|
372
299
|
|
|
373
300
|
|
|
374
301
|
class RouteImport(FeatureTemplateValidator):
|
|
375
|
-
protocol: RouteImportProtocol
|
|
376
|
-
protocol_sub_type: List[RouteImportProtocolSubType] = Field(
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
)
|
|
380
|
-
route_policy: Optional[str] = Field(
|
|
381
|
-
default=None,
|
|
382
|
-
description="The route policy that specifies the conditions for route import.",
|
|
383
|
-
json_schema_extra={"vmanage_key": "route-policy"},
|
|
384
|
-
)
|
|
385
|
-
redistribute: Optional[List[RouteImportRedistribute]] = Field(
|
|
386
|
-
default=None,
|
|
387
|
-
description="A list of redistribute configurations that define how routes from other protocols are imported.",
|
|
388
|
-
)
|
|
302
|
+
protocol: RouteImportProtocol
|
|
303
|
+
protocol_sub_type: List[RouteImportProtocolSubType] = Field(json_schema_extra={"vmanage_key": "protocol-sub-type"})
|
|
304
|
+
route_policy: Optional[str] = Field(default=None, json_schema_extra={"vmanage_key": "route-policy"})
|
|
305
|
+
redistribute: Optional[List[RouteImportRedistribute]] = None
|
|
389
306
|
model_config = ConfigDict(populate_by_name=True)
|
|
390
307
|
|
|
391
308
|
|
|
309
|
+
class RouteImportFromProtocol(str, Enum):
|
|
310
|
+
STATIC = "static"
|
|
311
|
+
CONNECTED = "connected"
|
|
312
|
+
BGP = "bgp"
|
|
313
|
+
OSPF = "ospf"
|
|
314
|
+
EIGRP = "eigrp"
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
class RouteImportFromProtocolSubType(str, Enum):
|
|
318
|
+
EXTERNAL = "external"
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
class RouteImportFromRedistributeProtocol(str, Enum):
|
|
322
|
+
BGP = "bgp"
|
|
323
|
+
EIGRP = "eigrp"
|
|
324
|
+
OSPF = "ospf"
|
|
325
|
+
|
|
326
|
+
|
|
392
327
|
class RouteImportFromRedistribute(FeatureTemplateValidator):
|
|
393
|
-
protocol: RouteImportFromRedistributeProtocol
|
|
394
|
-
|
|
395
|
-
)
|
|
396
|
-
route_policy: Optional[str] = Field(
|
|
397
|
-
default=None,
|
|
398
|
-
description="The route policy that defines the conditions for route redistribution.",
|
|
399
|
-
json_schema_extra={"vmanage_key": "route-policy"},
|
|
400
|
-
)
|
|
328
|
+
protocol: RouteImportFromRedistributeProtocol
|
|
329
|
+
route_policy: Optional[str] = Field(default=None, json_schema_extra={"vmanage_key": "route-policy"})
|
|
401
330
|
model_config = ConfigDict(populate_by_name=True)
|
|
402
331
|
|
|
403
332
|
|
|
404
333
|
class RouteImportFrom(FeatureTemplateValidator):
|
|
405
|
-
source_vpn: int = Field(
|
|
406
|
-
|
|
407
|
-
json_schema_extra={"vmanage_key": "source-vpn"},
|
|
408
|
-
)
|
|
409
|
-
protocol: RouteImportFromProtocol = Field(description="The routing protocol from which routes are to be imported.")
|
|
334
|
+
source_vpn: int = Field(json_schema_extra={"vmanage_key": "source-vpn"})
|
|
335
|
+
protocol: RouteImportFromProtocol
|
|
410
336
|
protocol_sub_type: List[RouteImportFromProtocolSubType] = Field(
|
|
411
|
-
|
|
412
|
-
json_schema_extra={"vmanage_key": "protocol-sub-type"},
|
|
413
|
-
)
|
|
414
|
-
route_policy: Optional[str] = Field(
|
|
415
|
-
default=None,
|
|
416
|
-
description="The route policy that specifies the criteria for route importation.",
|
|
417
|
-
json_schema_extra={"vmanage_key": "route-policy"},
|
|
418
|
-
)
|
|
419
|
-
redistribute: Optional[List[RouteImportFromRedistribute]] = Field(
|
|
420
|
-
default=None,
|
|
421
|
-
description=(
|
|
422
|
-
"A list of route redistribution configurations specifying how routes from other protocols are imported."
|
|
423
|
-
),
|
|
337
|
+
json_schema_extra={"vmanage_key": "protocol-sub-type"}
|
|
424
338
|
)
|
|
339
|
+
route_policy: Optional[str] = Field(default=None, json_schema_extra={"vmanage_key": "route-policy"})
|
|
340
|
+
redistribute: Optional[List[RouteImportFromRedistribute]] = None
|
|
425
341
|
model_config = ConfigDict(populate_by_name=True)
|
|
426
342
|
|
|
427
343
|
|
|
344
|
+
class RouteExportProtocol(str, Enum):
|
|
345
|
+
STATIC = "static"
|
|
346
|
+
CONNECTED = "connected"
|
|
347
|
+
BGP = "bgp"
|
|
348
|
+
EIGRP = "eigrp"
|
|
349
|
+
OSPF = "ospf"
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
class RouteExportProtocolSubType(str, Enum):
|
|
353
|
+
EXTERNAL = "external"
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
class RouteExportRedistributeProtocol(str, Enum):
|
|
357
|
+
BGP = "bgp"
|
|
358
|
+
OSPF = "ospf"
|
|
359
|
+
|
|
360
|
+
|
|
428
361
|
class RouteExportRedistribute(FeatureTemplateValidator):
|
|
429
|
-
protocol: RouteExportRedistributeProtocol
|
|
430
|
-
|
|
431
|
-
)
|
|
432
|
-
route_policy: Optional[str] = Field(
|
|
433
|
-
default=None,
|
|
434
|
-
description="The route policy that defines the conditions for route redistribution.",
|
|
435
|
-
json_schema_extra={"vmanage_key": "route-policy"},
|
|
436
|
-
)
|
|
362
|
+
protocol: RouteExportRedistributeProtocol
|
|
363
|
+
route_policy: Optional[str] = Field(default=None, json_schema_extra={"vmanage_key": "route-policy"})
|
|
437
364
|
model_config = ConfigDict(populate_by_name=True)
|
|
438
365
|
|
|
439
366
|
|
|
440
367
|
class RouteExport(FeatureTemplateValidator):
|
|
441
|
-
protocol: RouteExportProtocol
|
|
442
|
-
protocol_sub_type: List[RouteExportProtocolSubType] = Field(
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
)
|
|
446
|
-
route_policy: Optional[str] = Field(
|
|
447
|
-
default=None,
|
|
448
|
-
description="The route policy that specifies the criteria for route exportation.",
|
|
449
|
-
json_schema_extra={"vmanage_key": "route-policy"},
|
|
450
|
-
)
|
|
451
|
-
redistribute: Optional[List[RouteExportRedistribute]] = Field(
|
|
452
|
-
default=None,
|
|
453
|
-
description=(
|
|
454
|
-
"A list of route redistribution configurations specifying how routes from other protocols are exported."
|
|
455
|
-
),
|
|
456
|
-
)
|
|
368
|
+
protocol: RouteExportProtocol
|
|
369
|
+
protocol_sub_type: List[RouteExportProtocolSubType] = Field(json_schema_extra={"vmanage_key": "protocol-sub-type"})
|
|
370
|
+
route_policy: Optional[str] = Field(default=None, json_schema_extra={"vmanage_key": "route-policy"})
|
|
371
|
+
redistribute: Optional[List[RouteExportRedistribute]]
|
|
457
372
|
model_config = ConfigDict(populate_by_name=True)
|
|
458
373
|
|
|
459
374
|
|
|
460
375
|
class CiscoVPNModel(FeatureTemplate):
|
|
461
376
|
model_config = ConfigDict(arbitrary_types_allowed=True, populate_by_name=True)
|
|
462
|
-
_docs_description: str = "Cisco VPN Feature Template configuration."
|
|
463
377
|
|
|
464
|
-
vpn_id: int = Field(
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
)
|
|
469
|
-
vpn_name: Optional[str] = Field(
|
|
470
|
-
default=None, description="The name of the VPN instance.", json_schema_extra={"vmanage_key": "name"}
|
|
471
|
-
)
|
|
472
|
-
tenant_vpn_id: Optional[int] = Field(
|
|
473
|
-
default=None,
|
|
474
|
-
description="The tenant-specific identifier for the VPN instance, used in multi-tenant environments.",
|
|
475
|
-
json_schema_extra={"vmanage_key": "tenant-vpn-id"},
|
|
476
|
-
)
|
|
477
|
-
org_name: Optional[str] = Field(
|
|
478
|
-
default=None,
|
|
479
|
-
description="The name of the organization to which the VPN instance belongs.",
|
|
480
|
-
json_schema_extra={"vmanage_key": "org-name"},
|
|
481
|
-
)
|
|
378
|
+
vpn_id: int = Field(default=0, json_schema_extra={"vmanage_key": "vpn-id"})
|
|
379
|
+
vpn_name: Optional[str] = Field(default=None, json_schema_extra={"vmanage_key": "name"})
|
|
380
|
+
tenant_vpn_id: Optional[int] = Field(default=None, json_schema_extra={"vmanage_key": "tenant-vpn-id"})
|
|
381
|
+
org_name: Optional[str] = Field(default=None, json_schema_extra={"vmanage_key": "org-name"})
|
|
482
382
|
omp_admin_distance_ipv4: Optional[int] = Field(
|
|
483
|
-
default=None,
|
|
484
|
-
description="The administrative distance for IPv4 routes received over the Overlay Management Protocol (OMP).",
|
|
485
|
-
json_schema_extra={"vmanage_key": "omp-admin-distance-ipv4"},
|
|
383
|
+
default=None, json_schema_extra={"vmanage_key": "omp-admin-distance-ipv4"}
|
|
486
384
|
)
|
|
487
385
|
omp_admin_distance_ipv6: Optional[int] = Field(
|
|
488
|
-
default=None,
|
|
489
|
-
description="The administrative distance for IPv6 routes received over OMP.",
|
|
490
|
-
json_schema_extra={"vmanage_key": "omp-admin-distance-ipv6"},
|
|
491
|
-
)
|
|
492
|
-
dns: Optional[List[Dns]] = Field(
|
|
493
|
-
default=None,
|
|
494
|
-
description="A list of DNS configurations for the VPN instance.",
|
|
495
|
-
)
|
|
496
|
-
dns_ipv6: Optional[List[DnsIpv6]] = Field(
|
|
497
|
-
default=None,
|
|
498
|
-
description="A list of DNS configurations for IPv6 within the VPN instance.",
|
|
499
|
-
json_schema_extra={"vmanage_key": "dns-ipv6"},
|
|
500
|
-
)
|
|
501
|
-
layer4: Optional[BoolStr] = Field(
|
|
502
|
-
default=None,
|
|
503
|
-
description="A flag indicating whether Layer 4 information is included in the ECMP hash key.",
|
|
504
|
-
json_schema_extra={"data_path": ["ecmp-hash-key"]},
|
|
505
|
-
)
|
|
506
|
-
host: Optional[List[Host]] = Field(
|
|
507
|
-
default=None,
|
|
508
|
-
description="A list of host configurations within the VPN instance.",
|
|
509
|
-
json_schema_extra={"priority_order": ["hostname", "ip"]},
|
|
510
|
-
)
|
|
511
|
-
service: Optional[List[Service]] = Field(
|
|
512
|
-
default=None,
|
|
513
|
-
description="A list of service configurations associated with the VPN instance.",
|
|
386
|
+
default=None, json_schema_extra={"vmanage_key": "omp-admin-distance-ipv6"}
|
|
514
387
|
)
|
|
388
|
+
dns: Optional[List[Dns]] = None
|
|
389
|
+
dns_ipv6: Optional[List[DnsIpv6]] = Field(default=None, json_schema_extra={"vmanage_key": "dns-ipv6"})
|
|
390
|
+
layer4: Optional[bool] = Field(default=None, json_schema_extra={"data_path": ["ecmp-hash-key"]})
|
|
391
|
+
host: Optional[List[Host]] = Field(default=None, json_schema_extra={"priority_order": ["hostname", "ip"]})
|
|
392
|
+
service: Optional[List[Service]] = None
|
|
515
393
|
service_route: Optional[List[ServiceRoute]] = Field(
|
|
516
|
-
default=None,
|
|
517
|
-
description="A list of service route configurations for directing traffic to services within the VPN.",
|
|
518
|
-
json_schema_extra={"data_path": ["ip"], "vmanage_key": "service-route"},
|
|
394
|
+
default=None, json_schema_extra={"data_path": ["ip"], "vmanage_key": "service-route"}
|
|
519
395
|
)
|
|
520
396
|
route_v4: Optional[List[Routev4]] = Field(
|
|
521
397
|
default=None,
|
|
522
|
-
description="A list of IPv4 route configurations within the VPN instance.",
|
|
523
398
|
json_schema_extra={
|
|
524
399
|
"data_path": ["ip"],
|
|
525
400
|
"vmanage_key": "route",
|
|
@@ -527,70 +402,32 @@ class CiscoVPNModel(FeatureTemplate):
|
|
|
527
402
|
},
|
|
528
403
|
)
|
|
529
404
|
route_v6: Optional[List[Routev6]] = Field(
|
|
530
|
-
default=None,
|
|
531
|
-
description="A list of IPv6 route configurations within the VPN instance.",
|
|
532
|
-
json_schema_extra={"data_path": ["ipv6"], "vmanage_key": "route"},
|
|
405
|
+
default=None, json_schema_extra={"data_path": ["ipv6"], "vmanage_key": "route"}
|
|
533
406
|
)
|
|
534
407
|
gre_route: Optional[List[GreRoute]] = Field(
|
|
535
|
-
default=None,
|
|
536
|
-
description="A list of GRE tunnel route configurations within the VPN instance.",
|
|
537
|
-
json_schema_extra={"data_path": ["ip"], "vmanage_key": "gre-route"},
|
|
408
|
+
default=None, json_schema_extra={"data_path": ["ip"], "vmanage_key": "gre-route"}
|
|
538
409
|
)
|
|
539
410
|
ipsec_route: Optional[List[IpsecRoute]] = Field(
|
|
540
|
-
default=None,
|
|
541
|
-
description="A list of IPSec route configurations within the VPN instance.",
|
|
542
|
-
json_schema_extra={"data_path": ["ip"], "vmanage_key": "ipsec-route"},
|
|
543
|
-
)
|
|
544
|
-
advertise: Optional[List[Advertise]] = Field(
|
|
545
|
-
default=None,
|
|
546
|
-
description="A list of configurations for advertising routes via OMP within the VPN instance.",
|
|
547
|
-
json_schema_extra={"data_path": ["omp"]},
|
|
411
|
+
default=None, json_schema_extra={"data_path": ["ip"], "vmanage_key": "ipsec-route"}
|
|
548
412
|
)
|
|
413
|
+
advertise: Optional[List[Advertise]] = Field(default=None, json_schema_extra={"data_path": ["omp"]})
|
|
549
414
|
ipv6_advertise: Optional[List[Ipv6Advertise]] = Field(
|
|
550
|
-
default=None,
|
|
551
|
-
description="A list of configurations for advertising IPv6 routes via OMP within the VPN instance.",
|
|
552
|
-
json_schema_extra={"data_path": ["omp"], "vmanage_key": "ipv6-advertise"},
|
|
553
|
-
)
|
|
554
|
-
pool: Optional[List[Pool]] = Field(
|
|
555
|
-
default=None,
|
|
556
|
-
description="A list of NAT64 pool configurations within the VPN instance.",
|
|
557
|
-
json_schema_extra={"data_path": ["nat64", "v4"]},
|
|
558
|
-
)
|
|
559
|
-
natpool: Optional[List[Natpool]] = Field(
|
|
560
|
-
default=None,
|
|
561
|
-
description="A list of NAT pool configurations within the VPN instance.",
|
|
562
|
-
json_schema_extra={"data_path": ["nat"]},
|
|
563
|
-
)
|
|
564
|
-
static: Optional[List[Static]] = Field(
|
|
565
|
-
default=None,
|
|
566
|
-
description="A list of static configurations within the VPN instance for NAT.",
|
|
567
|
-
json_schema_extra={"data_path": ["nat"]},
|
|
415
|
+
default=None, json_schema_extra={"data_path": ["omp"], "vmanage_key": "ipv6-advertise"}
|
|
568
416
|
)
|
|
417
|
+
pool: Optional[List[Pool]] = Field(default=None, json_schema_extra={"data_path": ["nat64", "v4"]})
|
|
418
|
+
natpool: Optional[List[Natpool]] = Field(default=None, json_schema_extra={"data_path": ["nat"]})
|
|
419
|
+
static: Optional[List[Static]] = Field(default=None, json_schema_extra={"data_path": ["nat"]})
|
|
569
420
|
subnet_static: Optional[List[SubnetStatic]] = Field(
|
|
570
|
-
default=None,
|
|
571
|
-
description="A list of subnet-specific static configurations within the VPN instance for NAT.",
|
|
572
|
-
json_schema_extra={"data_path": ["nat"], "vmanage_key": "subnet-static"},
|
|
421
|
+
default=None, json_schema_extra={"data_path": ["nat"], "vmanage_key": "subnet-static"}
|
|
573
422
|
)
|
|
574
423
|
port_forward: Optional[List[PortForward]] = Field(
|
|
575
|
-
default=None,
|
|
576
|
-
description="A list of port forwarding configurations within the VPN instance.",
|
|
577
|
-
json_schema_extra={"data_path": ["nat"], "vmanage_key": "port-forward"},
|
|
578
|
-
)
|
|
579
|
-
route_import: Optional[List[RouteImport]] = Field(
|
|
580
|
-
default=None,
|
|
581
|
-
description="A list of route import configurations within the VPN instance.",
|
|
582
|
-
json_schema_extra={"vmanage_key": "route-import"},
|
|
424
|
+
default=None, json_schema_extra={"data_path": ["nat"], "vmanage_key": "port-forward"}
|
|
583
425
|
)
|
|
426
|
+
route_import: Optional[List[RouteImport]] = Field(default=None, json_schema_extra={"vmanage_key": "route-import"})
|
|
584
427
|
route_import_from: Optional[List[RouteImportFrom]] = Field(
|
|
585
|
-
default=None,
|
|
586
|
-
description="A list of configurations specifying routes to import from other sources into the VPN instance.",
|
|
587
|
-
json_schema_extra={"vmanage_key": "route-import-from"},
|
|
588
|
-
)
|
|
589
|
-
route_export: Optional[List[RouteExport]] = Field(
|
|
590
|
-
default=None,
|
|
591
|
-
description="A list of route export configurations within the VPN instance.",
|
|
592
|
-
json_schema_extra={"vmanage_key": "route-export"},
|
|
428
|
+
default=None, json_schema_extra={"vmanage_key": "route-import-from"}
|
|
593
429
|
)
|
|
430
|
+
route_export: Optional[List[RouteExport]] = Field(default=None, json_schema_extra={"vmanage_key": "route-export"})
|
|
594
431
|
|
|
595
432
|
payload_path: ClassVar[Path] = Path(__file__).parent / "DEPRECATED"
|
|
596
433
|
type: ClassVar[str] = "cisco_vpn"
|