catalystwan 0.40.2.dev1__py3-none-any.whl → 2.0.0a1__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/core/__init__.py +2 -0
- catalystwan/core/abstractions.py +26 -0
- catalystwan/{apigw_auth.py → core/apigw_auth.py} +27 -14
- catalystwan/core/client.py +71 -0
- catalystwan/core/encoder.py +12 -0
- catalystwan/{exceptions.py → core/exceptions.py} +29 -9
- catalystwan/core/loader.py +37 -0
- catalystwan/{__init__.py → core/metadata.py} +9 -22
- catalystwan/core/models/deserialize.py +204 -0
- catalystwan/core/models/serialize.py +137 -0
- catalystwan/core/request_adapter.py +246 -0
- catalystwan/{request_limiter.py → core/request_limiter.py} +1 -2
- catalystwan/{response.py → core/response.py} +41 -88
- catalystwan/{session.py → core/session.py} +84 -101
- catalystwan/core/types.py +33 -0
- catalystwan/{version.py → core/version.py} +3 -5
- catalystwan/{vmanage_auth.py → core/vmanage_auth.py} +46 -21
- catalystwan-2.0.0a1.dist-info/METADATA +239 -0
- catalystwan-2.0.0a1.dist-info/RECORD +24 -0
- {catalystwan-0.40.2.dev1.dist-info → catalystwan-2.0.0a1.dist-info}/WHEEL +2 -1
- catalystwan-2.0.0a1.dist-info/top_level.txt +1 -0
- catalystwan/abstractions.py +0 -77
- catalystwan/api/admin_tech_api.py +0 -176
- catalystwan/api/administration.py +0 -434
- catalystwan/api/alarms_api.py +0 -186
- catalystwan/api/api_container.py +0 -73
- catalystwan/api/basic_api.py +0 -338
- catalystwan/api/builders/__init__.py +0 -14
- 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/other.py +0 -79
- catalystwan/api/builders/feature_profiles/report.py +0 -137
- catalystwan/api/builders/feature_profiles/service.py +0 -213
- catalystwan/api/builders/feature_profiles/system.py +0 -80
- catalystwan/api/builders/feature_profiles/transport.py +0 -214
- catalystwan/api/builders/feature_profiles/uc_voice.py +0 -287
- catalystwan/api/config_device_inventory_api.py +0 -58
- catalystwan/api/config_group_api.py +0 -150
- catalystwan/api/configuration_groups/parcel.py +0 -206
- catalystwan/api/dashboard_api.py +0 -215
- catalystwan/api/device_action_api.py +0 -216
- catalystwan/api/feature_profile_api.py +0 -2401
- catalystwan/api/logs_api.py +0 -63
- catalystwan/api/monitoring_status_api.py +0 -76
- catalystwan/api/mtt_aaa_api.py +0 -197
- catalystwan/api/omp_api.py +0 -124
- catalystwan/api/packet_capture_api.py +0 -152
- catalystwan/api/parcel_api.py +0 -42
- catalystwan/api/partition_manager_api.py +0 -143
- catalystwan/api/policy_api.py +0 -1163
- catalystwan/api/resource_pool_api.py +0 -74
- catalystwan/api/software_action_api.py +0 -269
- catalystwan/api/speedtest_api.py +0 -153
- catalystwan/api/task_status_api.py +0 -171
- catalystwan/api/template_api.py +0 -761
- catalystwan/api/templates/README.md +0 -101
- catalystwan/api/templates/bool_str.py +0 -6
- catalystwan/api/templates/cli_template.py +0 -236
- catalystwan/api/templates/device_template/device_template.py +0 -189
- catalystwan/api/templates/device_variable.py +0 -7
- catalystwan/api/templates/feature_template.py +0 -133
- catalystwan/api/templates/feature_template_field.py +0 -175
- catalystwan/api/templates/feature_template_payload.py +0 -17
- catalystwan/api/templates/models/aaa_model.py +0 -387
- catalystwan/api/templates/models/cisco_aaa_model.py +0 -331
- catalystwan/api/templates/models/cisco_banner_model.py +0 -27
- catalystwan/api/templates/models/cisco_bfd_model.py +0 -61
- catalystwan/api/templates/models/cisco_bgp_model.py +0 -510
- catalystwan/api/templates/models/cisco_logging_model.py +0 -122
- catalystwan/api/templates/models/cisco_ntp_model.py +0 -60
- catalystwan/api/templates/models/cisco_omp_model.py +0 -121
- catalystwan/api/templates/models/cisco_ospf.py +0 -241
- catalystwan/api/templates/models/cisco_ospfv3.py +0 -498
- catalystwan/api/templates/models/cisco_secure_internet_gateway.py +0 -385
- catalystwan/api/templates/models/cisco_snmp_model.py +0 -102
- catalystwan/api/templates/models/cisco_system.py +0 -318
- catalystwan/api/templates/models/cisco_vpn_interface_model.py +0 -822
- catalystwan/api/templates/models/cisco_vpn_model.py +0 -603
- catalystwan/api/templates/models/cli_template.py +0 -18
- catalystwan/api/templates/models/omp_vsmart_model.py +0 -73
- catalystwan/api/templates/models/security_vsmart_model.py +0 -28
- catalystwan/api/templates/models/supported.py +0 -42
- catalystwan/api/templates/models/system_vsmart_model.py +0 -182
- catalystwan/api/templates/models/vpn_vsmart_interface_model.py +0 -198
- catalystwan/api/templates/models/vpn_vsmart_model.py +0 -124
- catalystwan/api/templates/payloads/aaa/aaa_model.py +0 -91
- catalystwan/api/templates/payloads/aaa/feature/aaa.json.j2 +0 -373
- catalystwan/api/templates/payloads/aaa/feature/accounting.json.j2 +0 -40
- catalystwan/api/templates/payloads/aaa/feature/radius.json.j2 +0 -107
- catalystwan/api/templates/payloads/aaa/feature/tacacs.json.j2 +0 -95
- catalystwan/api/templates/payloads/aaa/feature/user.json.j2 +0 -60
- catalystwan/api/templates/payloads/cisco_vpn/cisco_vpn_model.py +0 -92
- catalystwan/api/templates/payloads/cisco_vpn/feature/cisco_vpn.json.j2 +0 -224
- catalystwan/api/templates/payloads/cisco_vpn/feature/dns.json.j2 +0 -86
- catalystwan/api/templates/payloads/cisco_vpn/feature/ipv4route.json.j2 +0 -59
- catalystwan/api/templates/payloads/cisco_vpn/feature/ipv6route.json.j2 +0 -58
- catalystwan/api/templates/payloads/cisco_vpn/feature/mapping.json.j2 +0 -24
- catalystwan/api/templates/payloads/tenant/tenant.json.j2 +0 -127
- catalystwan/api/templates/payloads/tenant/tenant_model.py +0 -43
- catalystwan/api/tenant_backup_restore_api.py +0 -154
- catalystwan/api/tenant_management_api.py +0 -127
- catalystwan/api/tenant_migration_api.py +0 -121
- catalystwan/api/versions_utils.py +0 -414
- catalystwan/api/virtual_image_action_api.py +0 -200
- catalystwan/dataclasses.py +0 -493
- catalystwan/endpoints/__init__.py +0 -606
- catalystwan/endpoints/administration_user_and_group.py +0 -341
- catalystwan/endpoints/api_gateway.py +0 -24
- catalystwan/endpoints/certificate_management_device.py +0 -141
- catalystwan/endpoints/certificate_management_vmanage.py +0 -48
- catalystwan/endpoints/client.py +0 -96
- catalystwan/endpoints/cluster_management.py +0 -130
- catalystwan/endpoints/configuration/device/software_update.py +0 -31
- catalystwan/endpoints/configuration/disaster_recovery.py +0 -305
- 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/policy_object.py +0 -105
- catalystwan/endpoints/configuration/feature_profile/sdwan/service.py +0 -137
- catalystwan/endpoints/configuration/feature_profile/sdwan/sig_security.py +0 -88
- catalystwan/endpoints/configuration/feature_profile/sdwan/system.py +0 -205
- catalystwan/endpoints/configuration/feature_profile/sdwan/topology.py +0 -93
- catalystwan/endpoints/configuration/feature_profile/sdwan/transport.py +0 -214
- catalystwan/endpoints/configuration/feature_profile/sdwan/uc_voice.py +0 -77
- catalystwan/endpoints/configuration/network_hierarchy.py +0 -32
- catalystwan/endpoints/configuration/policy/abstractions.py +0 -49
- catalystwan/endpoints/configuration/policy/definition/access_control_list.py +0 -57
- catalystwan/endpoints/configuration/policy/definition/access_control_list_ipv6.py +0 -57
- 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/control.py +0 -57
- catalystwan/endpoints/configuration/policy/definition/device_access.py +0 -57
- catalystwan/endpoints/configuration/policy/definition/device_access_ipv6.py +0 -59
- 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/hub_and_spoke.py +0 -57
- catalystwan/endpoints/configuration/policy/definition/intrusion_prevention.py +0 -52
- catalystwan/endpoints/configuration/policy/definition/mesh.py +0 -53
- catalystwan/endpoints/configuration/policy/definition/pri_isdn_port.py +0 -57
- catalystwan/endpoints/configuration/policy/definition/qos_map.py +0 -53
- catalystwan/endpoints/configuration/policy/definition/rewrite.py +0 -57
- catalystwan/endpoints/configuration/policy/definition/route_policy.py +0 -50
- catalystwan/endpoints/configuration/policy/definition/rule_set.py +0 -53
- catalystwan/endpoints/configuration/policy/definition/security_group.py +0 -57
- 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/traffic_data.py +0 -58
- catalystwan/endpoints/configuration/policy/definition/url_filtering.py +0 -50
- catalystwan/endpoints/configuration/policy/definition/vpn_membership.py +0 -57
- catalystwan/endpoints/configuration/policy/definition/vpn_qos_map.py +0 -50
- catalystwan/endpoints/configuration/policy/definition/zone_based_firewall.py +0 -57
- catalystwan/endpoints/configuration/policy/list/app.py +0 -48
- catalystwan/endpoints/configuration/policy/list/app_probe.py +0 -52
- catalystwan/endpoints/configuration/policy/list/as_path.py +0 -48
- catalystwan/endpoints/configuration/policy/list/class_map.py +0 -48
- catalystwan/endpoints/configuration/policy/list/color.py +0 -48
- catalystwan/endpoints/configuration/policy/list/community.py +0 -48
- catalystwan/endpoints/configuration/policy/list/data_ipv6_prefix.py +0 -52
- catalystwan/endpoints/configuration/policy/list/data_prefix.py +0 -48
- catalystwan/endpoints/configuration/policy/list/expanded_community.py +0 -52
- 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/fqdn.py +0 -48
- catalystwan/endpoints/configuration/policy/list/geo_location.py +0 -48
- catalystwan/endpoints/configuration/policy/list/identity.py +0 -48
- catalystwan/endpoints/configuration/policy/list/ips_signature.py +0 -52
- catalystwan/endpoints/configuration/policy/list/ipv6_prefix.py +0 -48
- catalystwan/endpoints/configuration/policy/list/local_app.py +0 -48
- catalystwan/endpoints/configuration/policy/list/local_domain.py +0 -48
- catalystwan/endpoints/configuration/policy/list/media_profile.py +0 -52
- catalystwan/endpoints/configuration/policy/list/mirror.py +0 -48
- catalystwan/endpoints/configuration/policy/list/modem_pass_through.py +0 -52
- catalystwan/endpoints/configuration/policy/list/policer.py +0 -48
- catalystwan/endpoints/configuration/policy/list/port.py +0 -48
- catalystwan/endpoints/configuration/policy/list/preferred_color_group.py +0 -52
- catalystwan/endpoints/configuration/policy/list/prefix.py +0 -49
- catalystwan/endpoints/configuration/policy/list/protocol_name.py +0 -52
- catalystwan/endpoints/configuration/policy/list/region.py +0 -47
- catalystwan/endpoints/configuration/policy/list/scalable_group_tag.py +0 -52
- catalystwan/endpoints/configuration/policy/list/site.py +0 -52
- catalystwan/endpoints/configuration/policy/list/sla.py +0 -48
- 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/tloc.py +0 -48
- 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/list/url_allow_list.py +0 -48
- catalystwan/endpoints/configuration/policy/list/url_block_list.py +0 -48
- catalystwan/endpoints/configuration/policy/list/vpn.py +0 -50
- catalystwan/endpoints/configuration/policy/list/zone.py +0 -48
- catalystwan/endpoints/configuration/policy/security_template.py +0 -55
- catalystwan/endpoints/configuration/policy/vedge_template.py +0 -52
- catalystwan/endpoints/configuration/policy/voice_template.py +0 -39
- catalystwan/endpoints/configuration/policy/vsmart_template.py +0 -79
- catalystwan/endpoints/configuration/policy_group.py +0 -30
- catalystwan/endpoints/configuration/software_actions.py +0 -201
- catalystwan/endpoints/configuration/topology_group.py +0 -51
- catalystwan/endpoints/configuration_dashboard_status.py +0 -127
- catalystwan/endpoints/configuration_device_actions.py +0 -385
- catalystwan/endpoints/configuration_device_inventory.py +0 -309
- catalystwan/endpoints/configuration_device_template.py +0 -39
- catalystwan/endpoints/configuration_feature_profile.py +0 -135
- catalystwan/endpoints/configuration_general_template.py +0 -31
- catalystwan/endpoints/configuration_group.py +0 -197
- catalystwan/endpoints/configuration_settings.py +0 -753
- catalystwan/endpoints/configuration_template_master.py +0 -48
- catalystwan/endpoints/endpoints_container.py +0 -279
- catalystwan/endpoints/misc.py +0 -21
- catalystwan/endpoints/monitoring/device_details.py +0 -246
- catalystwan/endpoints/monitoring/security_policy.py +0 -12
- catalystwan/endpoints/monitoring/server_info.py +0 -12
- catalystwan/endpoints/monitoring/status.py +0 -76
- catalystwan/endpoints/real_time_monitoring/reboot_history.py +0 -35
- catalystwan/endpoints/sdavc_cloud_connector.py +0 -43
- catalystwan/endpoints/tenant_backup_restore.py +0 -40
- catalystwan/endpoints/tenant_management.py +0 -215
- catalystwan/endpoints/tenant_migration.py +0 -102
- catalystwan/endpoints/troubleshooting_tools/device_connectivity.py +0 -128
- catalystwan/endpoints/url_monitoring.py +0 -26
- catalystwan/integration_tests/__init__.py +0 -0
- 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_transport.py +0 -1700
- catalystwan/integration_tests/feature_profile/sdwan/topology/test_topology.py +0 -93
- catalystwan/integration_tests/profile_builder/__init__.py +0 -0
- catalystwan/integration_tests/profile_builder/test_pb_service.py +0 -78
- catalystwan/integration_tests/profile_builder/test_pb_transport.py +0 -56
- 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_find_template_values.py +0 -38
- catalystwan/integration_tests/test_network_hierarchy.py +0 -82
- catalystwan/integration_tests/test_settings.py +0 -30
- catalystwan/logging.conf +0 -37
- catalystwan/models/common.py +0 -1508
- catalystwan/models/configuration/common.py +0 -11
- catalystwan/models/configuration/feature_profile/README.md +0 -344
- catalystwan/models/configuration/feature_profile/builder.py +0 -22
- catalystwan/models/configuration/feature_profile/common.py +0 -790
- catalystwan/models/configuration/feature_profile/parcel.py +0 -232
- 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 -1054
- 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 -915
- 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/__init__.py +0 -178
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/app_probe.py +0 -56
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/application_list.py +0 -31
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/as_path.py +0 -22
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/color_list.py +0 -21
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/data_prefix.py +0 -35
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/expanded_community_list.py +0 -25
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/extended_community.py +0 -34
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/fowarding_class.py +0 -26
- 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/ipv6_data_prefix.py +0 -28
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/ipv6_prefix_list.py +0 -38
- 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/policer.py +0 -42
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/prefered_group_color.py +0 -83
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/prefix_list.py +0 -28
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/service_object_group.py +0 -21
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/sla_class.py +0 -130
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/standard_community.py +0 -30
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/policy/tloc_list.py +0 -44
- 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/application_list.py +0 -31
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/data_prefix.py +0 -22
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/fqdn.py +0 -24
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/geolocation_list.py +0 -32
- 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/ips_signature.py +0 -44
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/local_domain.py +0 -24
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/protocol_list.py +0 -21
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/scalable_group_tag.py +0 -26
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/security_port.py +0 -45
- 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.py +0 -32
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/url_filtering.py +0 -148
- catalystwan/models/configuration/feature_profile/sdwan/policy_object/security/zone.py +0 -44
- 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/routing/ospf.py +0 -173
- catalystwan/models/configuration/feature_profile/sdwan/routing/ospfv3.py +0 -301
- catalystwan/models/configuration/feature_profile/sdwan/service/__init__.py +0 -91
- catalystwan/models/configuration/feature_profile/sdwan/service/appqoe.py +0 -270
- catalystwan/models/configuration/feature_profile/sdwan/service/dhcp_server.py +0 -127
- catalystwan/models/configuration/feature_profile/sdwan/service/dual_router_ha.py +0 -26
- catalystwan/models/configuration/feature_profile/sdwan/service/eigrp.py +0 -103
- catalystwan/models/configuration/feature_profile/sdwan/service/lan/common.py +0 -33
- catalystwan/models/configuration/feature_profile/sdwan/service/lan/ethernet.py +0 -404
- catalystwan/models/configuration/feature_profile/sdwan/service/lan/gre.py +0 -136
- catalystwan/models/configuration/feature_profile/sdwan/service/lan/ipsec.py +0 -119
- catalystwan/models/configuration/feature_profile/sdwan/service/lan/multilink.py +0 -101
- catalystwan/models/configuration/feature_profile/sdwan/service/lan/svi.py +0 -182
- catalystwan/models/configuration/feature_profile/sdwan/service/lan/vpn.py +0 -627
- catalystwan/models/configuration/feature_profile/sdwan/service/multicast.py +0 -242
- catalystwan/models/configuration/feature_profile/sdwan/service/object_tracker.py +0 -84
- catalystwan/models/configuration/feature_profile/sdwan/service/route_policy.py +0 -419
- catalystwan/models/configuration/feature_profile/sdwan/service/service_chain.py +0 -38
- catalystwan/models/configuration/feature_profile/sdwan/service/service_insertion_attachment.py +0 -184
- catalystwan/models/configuration/feature_profile/sdwan/service/switchport.py +0 -110
- catalystwan/models/configuration/feature_profile/sdwan/service/tracker.py +0 -92
- catalystwan/models/configuration/feature_profile/sdwan/service/wireless_lan.py +0 -216
- 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/aaa.py +0 -406
- 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/transport/__init__.py +0 -93
- catalystwan/models/configuration/feature_profile/sdwan/transport/cellular_controller.py +0 -58
- 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 -98
- 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 -375
- 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 -25
- 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 -68
- 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 -55
- catalystwan/models/configuration/feature_profile/sdwan/uc_voice/voice_tenant.py +0 -40
- catalystwan/models/configuration/network_hierarchy/__init__.py +0 -22
- catalystwan/models/configuration/network_hierarchy/cflowd.py +0 -120
- catalystwan/models/configuration/network_hierarchy/node.py +0 -88
- catalystwan/models/configuration/policy_group.py +0 -74
- catalystwan/models/configuration/profile_type.py +0 -5
- catalystwan/models/configuration/topology_group.py +0 -52
- catalystwan/models/device_inventory.py +0 -30
- catalystwan/models/feature_profile_parcel.py +0 -15
- catalystwan/models/misc/application_protocols.py +0 -29
- catalystwan/models/monitoring/security_policy.py +0 -16
- catalystwan/models/monitoring/server_info.py +0 -12
- catalystwan/models/policy/__init__.py +0 -392
- catalystwan/models/policy/centralized.py +0 -265
- catalystwan/models/policy/definition/access_control_list.py +0 -193
- catalystwan/models/policy/definition/access_control_list_ipv6.py +0 -187
- 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/control.py +0 -366
- catalystwan/models/policy/definition/device_access.py +0 -117
- catalystwan/models/policy/definition/device_access_ipv6.py +0 -115
- 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/hub_and_spoke.py +0 -87
- catalystwan/models/policy/definition/intrusion_prevention.py +0 -55
- catalystwan/models/policy/definition/mesh.py +0 -47
- catalystwan/models/policy/definition/pri_isdn_port.py +0 -48
- catalystwan/models/policy/definition/qos_map.py +0 -111
- catalystwan/models/policy/definition/rewrite.py +0 -47
- catalystwan/models/policy/definition/route_policy.py +0 -187
- catalystwan/models/policy/definition/rule_set.py +0 -270
- catalystwan/models/policy/definition/security_group.py +0 -93
- 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 -87
- catalystwan/models/policy/definition/traffic_data.py +0 -496
- catalystwan/models/policy/definition/url_filtering.py +0 -70
- catalystwan/models/policy/definition/vpn_membership.py +0 -42
- catalystwan/models/policy/definition/vpn_qos_map.py +0 -46
- catalystwan/models/policy/definition/zone_based_firewall.py +0 -301
- 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 -45
- catalystwan/models/policy/localized.py +0 -154
- catalystwan/models/policy/policy.py +0 -100
- catalystwan/models/policy/policy_definition.py +0 -1624
- catalystwan/models/policy/policy_list.py +0 -47
- catalystwan/models/policy/security.py +0 -279
- catalystwan/models/policy/voice.py +0 -77
- catalystwan/models/settings.py +0 -41
- catalystwan/models/templates.py +0 -79
- catalystwan/models/tenant.py +0 -105
- catalystwan/models/url_monitoring.py +0 -28
- catalystwan/tests/__init__.py +0 -0
- catalystwan/tests/builders/uc_voice.py +0 -85
- catalystwan/tests/models/__init__.py +0 -0
- catalystwan/tests/models/test_digital_interface.py +0 -56
- catalystwan/tests/templates/__init__.py +0 -0
- catalystwan/tests/templates/definitions/__init__.py +0 -0
- catalystwan/tests/templates/definitions/aaa_basic.json +0 -96
- catalystwan/tests/templates/definitions/aaa_complex.json +0 -464
- catalystwan/tests/templates/definitions/basic/__init__.py +0 -0
- catalystwan/tests/templates/definitions/basic/alias.json +0 -7
- catalystwan/tests/templates/definitions/basic/basic.json +0 -7
- catalystwan/tests/templates/definitions/basic/basic_no_value.json +0 -7
- catalystwan/tests/templates/definitions/basic/children.json +0 -39
- catalystwan/tests/templates/definitions/basic/children_nested.json +0 -72
- catalystwan/tests/templates/definitions/basic/children_nested_datapath.json +0 -72
- catalystwan/tests/templates/definitions/basic/data_path.json +0 -13
- catalystwan/tests/templates/definitions/cisco_aaa.json +0 -178
- catalystwan/tests/templates/definitions/cisco_aaa_complex.json +0 -361
- catalystwan/tests/templates/definitions/cisco_banner.json +0 -20
- catalystwan/tests/templates/definitions/cisco_bfd.json +0 -90
- 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_basic.json +0 -17
- catalystwan/tests/templates/definitions/cisco_vpn_complex.json +0 -1081
- catalystwan/tests/templates/definitions/cisco_vpn_interface_complex.json +0 -821
- catalystwan/tests/templates/definitions/default_cisco_system.json +0 -184
- catalystwan/tests/templates/definitions/omp_vsmart_1.json +0 -26
- catalystwan/tests/templates/definitions/omp_vsmart_2.json +0 -48
- catalystwan/tests/templates/definitions/omp_vsmart_3.json +0 -71
- 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/__init__.py +0 -53
- catalystwan/tests/templates/models/aaa.py +0 -106
- catalystwan/tests/templates/models/cisco_aaa.py +0 -124
- catalystwan/tests/templates/models/cisco_banner.py +0 -7
- catalystwan/tests/templates/models/cisco_bfd.py +0 -15
- 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_system.py +0 -113
- catalystwan/tests/templates/models/cisco_vpn.py +0 -240
- catalystwan/tests/templates/models/cisco_vpn_interface.py +0 -200
- catalystwan/tests/templates/models/omp_vsmart.py +0 -53
- 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/basic/alias.json +0 -24
- catalystwan/tests/templates/schemas/basic/basic.json +0 -23
- catalystwan/tests/templates/schemas/basic/children.json +0 -59
- catalystwan/tests/templates/schemas/basic/children_nested.json +0 -112
- catalystwan/tests/templates/schemas/basic/children_nested_datapath.json +0 -112
- catalystwan/tests/templates/schemas/basic/data_path.json +0 -29
- catalystwan/tests/templates/schemas/cedge_aaa.json +0 -1185
- catalystwan/tests/templates/schemas/cisco_banner.json +0 -44
- catalystwan/tests/templates/schemas/cisco_bfd.json +0 -266
- 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_system.json +0 -3099
- catalystwan/tests/templates/schemas/cisco_vpn.json +0 -2504
- catalystwan/tests/templates/schemas/cisco_vpn_interface.json +0 -3348
- catalystwan/tests/templates/schemas/omp-vsmart.json +0 -222
- 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_chose_model.py +0 -32
- catalystwan/tests/templates/test_deserialize_model.py +0 -69
- catalystwan/tests/templates/test_find_template_values.py +0 -193
- catalystwan/tests/templates/test_find_template_values_2.py +0 -193
- catalystwan/tests/templates/test_generate_payload.py +0 -137
- catalystwan/tests/templates/test_serialize_model.py +0 -52
- catalystwan/tests/test_admin_tech_api.py +0 -198
- catalystwan/tests/test_administration.py +0 -470
- catalystwan/tests/test_alarms_api.py +0 -251
- catalystwan/tests/test_cli_template.py +0 -218
- catalystwan/tests/test_creation_tools.py +0 -155
- catalystwan/tests/test_device_action_api.py +0 -117
- catalystwan/tests/test_devices_api.py +0 -674
- catalystwan/tests/test_endpoints.py +0 -907
- catalystwan/tests/test_feature_profile_api.py +0 -282
- catalystwan/tests/test_feature_template_field.py +0 -33
- catalystwan/tests/test_logs_api.py +0 -40
- catalystwan/tests/test_models_common.py +0 -53
- catalystwan/tests/test_monitoring_security_policy.py +0 -65
- catalystwan/tests/test_monitoring_server_info.py +0 -49
- catalystwan/tests/test_monitoring_status_api.py +0 -118
- catalystwan/tests/test_mtt_aaa_api.py +0 -293
- catalystwan/tests/test_omp_api.py +0 -438
- catalystwan/tests/test_packet_capture.py +0 -125
- catalystwan/tests/test_partition_manager_api.py +0 -121
- catalystwan/tests/test_response.py +0 -183
- catalystwan/tests/test_session.py +0 -102
- catalystwan/tests/test_software_action_api.py +0 -154
- catalystwan/tests/test_speed_test_api.py +0 -143
- catalystwan/tests/test_task_status_api.py +0 -381
- catalystwan/tests/test_templates.py +0 -405
- catalystwan/tests/test_tenant_backup_restore_api.py +0 -88
- catalystwan/tests/test_tenant_management_api.py +0 -153
- catalystwan/tests/test_tenant_migration_api.py +0 -102
- catalystwan/tests/test_typed_list.py +0 -426
- catalystwan/tests/test_url_monitoring.py +0 -80
- catalystwan/tests/test_version.py +0 -99
- catalystwan/tests/test_version_utils.py +0 -240
- catalystwan/tests/test_vmanage_auth.py +0 -149
- catalystwan/typed_list.py +0 -288
- catalystwan/utils/__init__.py +0 -0
- catalystwan/utils/alarm_status.py +0 -16
- catalystwan/utils/certificate_status.py +0 -13
- catalystwan/utils/colors.py +0 -12
- catalystwan/utils/config_status.py +0 -8
- catalystwan/utils/creation_tools.py +0 -136
- catalystwan/utils/dashboard.py +0 -255
- catalystwan/utils/device_model.py +0 -322
- catalystwan/utils/dict.py +0 -61
- catalystwan/utils/feature_template/choose_model.py +0 -30
- catalystwan/utils/feature_template/find_template_values.py +0 -111
- catalystwan/utils/model.py +0 -45
- catalystwan/utils/operation_status.py +0 -22
- catalystwan/utils/persona.py +0 -5
- catalystwan/utils/personality.py +0 -10
- catalystwan/utils/pydantic_field.py +0 -12
- catalystwan/utils/reachability.py +0 -14
- catalystwan/utils/session_type.py +0 -17
- catalystwan/utils/template_type.py +0 -8
- catalystwan/utils/type_check.py +0 -22
- catalystwan/utils/upgrades_helper.py +0 -95
- catalystwan/utils/validate_status.py +0 -8
- catalystwan/workflows/backup_restore_device_templates.py +0 -467
- catalystwan/workflows/tenant_migration.py +0 -203
- catalystwan-0.40.2.dev1.dist-info/METADATA +0 -539
- catalystwan-0.40.2.dev1.dist-info/RECORD +0 -628
- /catalystwan/{api → core/models}/__init__.py +0 -0
- /catalystwan/{api/builders/feature_profiles/__init__.py → core/py.typed} +0 -0
- {catalystwan-0.40.2.dev1.dist-info → catalystwan-2.0.0a1.dist-info}/LICENSE +0 -0
catalystwan/utils/dashboard.py
DELETED
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
# Copyright 2023 Cisco Systems, Inc. and its affiliates
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from enum import Enum
|
|
6
|
-
from typing import Any, List, Optional, Union
|
|
7
|
-
|
|
8
|
-
from attr import define, field # type: ignore
|
|
9
|
-
|
|
10
|
-
from catalystwan.dataclasses import DataclassBase
|
|
11
|
-
from catalystwan.typed_list import DataSequence
|
|
12
|
-
from catalystwan.utils.creation_tools import FIELD_NAME, create_dataclass
|
|
13
|
-
from catalystwan.utils.personality import Personality
|
|
14
|
-
from catalystwan.utils.reachability import Reachability
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
class DeviceName(Enum):
|
|
18
|
-
VMANAGE = "vManage"
|
|
19
|
-
VBOND = "vBond"
|
|
20
|
-
VSMART = "vSmart"
|
|
21
|
-
EDGE = "WAN Edge"
|
|
22
|
-
VEDGE = "vEdge"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
class StatusName(Enum):
|
|
26
|
-
CONTROL_STATUS = "Control Status"
|
|
27
|
-
CONTROL_UP = "Control up"
|
|
28
|
-
PARTIAL_CONTROL = "Partial"
|
|
29
|
-
CONTROL_DOWN = "Control down"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
class BfdConnectivityName(Enum):
|
|
33
|
-
FULL = "Full WAN Connectivity"
|
|
34
|
-
PARTIAL = "Partial WAN Connectivity"
|
|
35
|
-
NO_CONNECTIVITY = "No WAN Connectivity"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
class InventoryName(Enum):
|
|
39
|
-
TOTAL = "Total"
|
|
40
|
-
AUTHORIZED = "Authorized"
|
|
41
|
-
DEPLOYED = "Deployed"
|
|
42
|
-
STAGING = "Staging"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
class PercentageDistributionName(Enum):
|
|
46
|
-
BELOW_10_MBPS = "less_than_10_mbps"
|
|
47
|
-
BETWEEN_10_AND_100_MBPS = "10_mbps_100_mbps"
|
|
48
|
-
BETWEEN_100_AND_500_MBPS = "100_mbps_500_mbps"
|
|
49
|
-
ABOVE_500_MBPS = "greater_than_500_mbps"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
class PercentageDistribution(Enum):
|
|
53
|
-
BELOW_10_MBPS = "< 10 Mbps"
|
|
54
|
-
BETWEEN_10_AND_100_MBPS = "10 Mbps - 100 Mbps"
|
|
55
|
-
BETWEEN_100_AND_500_MBPS = "100 Mbps - 500 Mbps"
|
|
56
|
-
ABOVE_500_MBPS = "> 500 Mbps"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
class HealthColor(Enum):
|
|
60
|
-
GREEN = "green"
|
|
61
|
-
YELLOW = "yellow"
|
|
62
|
-
RED = "red"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
def name_converter(name):
|
|
66
|
-
if name is None:
|
|
67
|
-
return None
|
|
68
|
-
for enum_type in (StatusName, DeviceName, BfdConnectivityName, InventoryName, PercentageDistributionName):
|
|
69
|
-
try:
|
|
70
|
-
return enum_type(name)
|
|
71
|
-
except ValueError:
|
|
72
|
-
pass
|
|
73
|
-
|
|
74
|
-
raise ValueError(f"'{name}' is not a valid name.")
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
@define
|
|
78
|
-
class Count(DataclassBase):
|
|
79
|
-
"""Dataclass used to handle endpoints that return count of something
|
|
80
|
-
|
|
81
|
-
Example:
|
|
82
|
-
Endpoint '/dataservice/clusterManagement/health/summary' returns count of vmanages, which
|
|
83
|
-
contains details_url, name, count, status and status_list
|
|
84
|
-
"""
|
|
85
|
-
|
|
86
|
-
details_url: str = field(metadata={FIELD_NAME: "detailsURL"})
|
|
87
|
-
count: Optional[int] = field(default=None)
|
|
88
|
-
status: Optional[str] = field(default=None)
|
|
89
|
-
name: Optional[
|
|
90
|
-
Union[DeviceName, StatusName, BfdConnectivityName, InventoryName, PercentageDistributionName]
|
|
91
|
-
] = field(default=None, converter=name_converter)
|
|
92
|
-
message: Optional[str] = field(default=None)
|
|
93
|
-
status_list: Optional[DataSequence[Count]] = field(default=None, metadata={FIELD_NAME: "statusList"})
|
|
94
|
-
list: Optional[str] = field(default=None)
|
|
95
|
-
value: Optional[int] = field(default=None)
|
|
96
|
-
percentageDistribution: Optional[PercentageDistribution] = field(default=None)
|
|
97
|
-
|
|
98
|
-
@value.validator # type: ignore
|
|
99
|
-
def value_or_count_provided(self, attribute, value):
|
|
100
|
-
"""Count dataclass requires count or value attribute in order to show the number of thing it is displaying"""
|
|
101
|
-
if value is None and self.count is None:
|
|
102
|
-
raise ValueError("For 'Count' dataclass 'value' or 'count' attribute must be provided.")
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
@define
|
|
106
|
-
class CertificatesStatus(DataclassBase):
|
|
107
|
-
"""Number of certificates with given status"""
|
|
108
|
-
|
|
109
|
-
invalid: int
|
|
110
|
-
warning: int
|
|
111
|
-
revoked: Optional[int] = field(default=None)
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
@define
|
|
115
|
-
class ControlStatus(DataclassBase):
|
|
116
|
-
"""Number of given control statuses"""
|
|
117
|
-
|
|
118
|
-
up: int = field(metadata={FIELD_NAME: "controlUp"})
|
|
119
|
-
partial: int
|
|
120
|
-
down: int = field(metadata={FIELD_NAME: "controlDown"})
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
@define
|
|
124
|
-
class SiteHealth(DataclassBase):
|
|
125
|
-
"""Number connectivity to devices on sites with given health"""
|
|
126
|
-
|
|
127
|
-
full_connectivity: int = field(metadata={FIELD_NAME: "fullConnectivity"})
|
|
128
|
-
partial_connectivity: int = field(metadata={FIELD_NAME: "partialConnectivity"})
|
|
129
|
-
no_connectivity: int = field(metadata={FIELD_NAME: "noConnectivity"})
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
@define
|
|
133
|
-
class vEdgeHealth(DataclassBase):
|
|
134
|
-
"""Number of vEdges with given health"""
|
|
135
|
-
|
|
136
|
-
normal: int
|
|
137
|
-
warning: int
|
|
138
|
-
error: int
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
@define
|
|
142
|
-
class vSmartStatus(DataclassBase):
|
|
143
|
-
"""Number of vSmarts with given status"""
|
|
144
|
-
|
|
145
|
-
up: int
|
|
146
|
-
down: int
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
@define
|
|
150
|
-
class TenantStatus(DataclassBase):
|
|
151
|
-
id: str = field(metadata={FIELD_NAME: "tenantId"})
|
|
152
|
-
name: str = field(metadata={FIELD_NAME: "tenantName"})
|
|
153
|
-
control_status: ControlStatus = field(
|
|
154
|
-
metadata={FIELD_NAME: "controlStatus"}, converter=lambda x: create_dataclass(ControlStatus, x)
|
|
155
|
-
)
|
|
156
|
-
site_health: SiteHealth = field(
|
|
157
|
-
metadata={FIELD_NAME: "siteHealth"}, converter=lambda x: create_dataclass(SiteHealth, x)
|
|
158
|
-
)
|
|
159
|
-
vedge_health: vEdgeHealth = field(
|
|
160
|
-
metadata={FIELD_NAME: "vEdgeHealth"}, converter=lambda x: create_dataclass(vEdgeHealth, x)
|
|
161
|
-
)
|
|
162
|
-
vsmart_status: vSmartStatus = field(
|
|
163
|
-
metadata={FIELD_NAME: "vSmartStatus"}, converter=lambda x: create_dataclass(vSmartStatus, x)
|
|
164
|
-
)
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
@define
|
|
168
|
-
class DeviceHealth(DataclassBase):
|
|
169
|
-
name: str
|
|
170
|
-
personality: Personality = field(converter=Personality)
|
|
171
|
-
uuid: str
|
|
172
|
-
reachability: Reachability = field(converter=Reachability)
|
|
173
|
-
longitude: float
|
|
174
|
-
latitude: float
|
|
175
|
-
health: HealthColor = field(converter=HealthColor)
|
|
176
|
-
qoe: int
|
|
177
|
-
location: str
|
|
178
|
-
site_id: str
|
|
179
|
-
system_ip: str
|
|
180
|
-
device_type: Personality = field(converter=Personality)
|
|
181
|
-
local_system_ip: str
|
|
182
|
-
device_model: str
|
|
183
|
-
software_version: str
|
|
184
|
-
cpu_load: float
|
|
185
|
-
memory_utilization: float
|
|
186
|
-
control_connections: int
|
|
187
|
-
control_connections_up: int
|
|
188
|
-
vsmart_control_connections: int
|
|
189
|
-
expected_vsmart_connections: int
|
|
190
|
-
has_geo_data: bool
|
|
191
|
-
uptime_date: int
|
|
192
|
-
device_groups: List[str]
|
|
193
|
-
connected_vmanages: List[str]
|
|
194
|
-
bfd_sessions_up: int
|
|
195
|
-
bfd_sessions: int
|
|
196
|
-
omp_peers: int
|
|
197
|
-
omp_peers_up: int
|
|
198
|
-
board_serial_number: int
|
|
199
|
-
chassis_number: str
|
|
200
|
-
vpn_ids: Any
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
@define
|
|
204
|
-
class DevicesHealth(DataclassBase):
|
|
205
|
-
total_devices: int
|
|
206
|
-
devices: DataSequence[DeviceHealth]
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
@define
|
|
210
|
-
class LicensedDevices(DataclassBase):
|
|
211
|
-
"""Number of total and licensed devices"""
|
|
212
|
-
|
|
213
|
-
total_devices: int = field(metadata={FIELD_NAME: "totalDevices"})
|
|
214
|
-
licensed_devices: int = field(metadata={FIELD_NAME: "licensedDevice"})
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
@define
|
|
218
|
-
class DeviceHealthOverview(DataclassBase):
|
|
219
|
-
"""Number of devices with given health overview"""
|
|
220
|
-
|
|
221
|
-
good: int
|
|
222
|
-
fair: int
|
|
223
|
-
poor: int
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
@define
|
|
227
|
-
class TransportHealth(DataclassBase):
|
|
228
|
-
"""Contains information about loss percentage, latency and jitter for a given color."""
|
|
229
|
-
|
|
230
|
-
entry_time: int
|
|
231
|
-
jitter: int
|
|
232
|
-
color: str
|
|
233
|
-
loss_percentage: float
|
|
234
|
-
latency: int
|
|
235
|
-
app_probe_class: str
|
|
236
|
-
summary_time: int
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
@define
|
|
240
|
-
class TunnelHealth(DataclassBase):
|
|
241
|
-
"""Contains information about health for a given tunnel."""
|
|
242
|
-
|
|
243
|
-
name: str
|
|
244
|
-
remote_color: str
|
|
245
|
-
remote_system_ip: str
|
|
246
|
-
local_color: str
|
|
247
|
-
local_system_ip: str
|
|
248
|
-
vqoe_score: float
|
|
249
|
-
jitter: float
|
|
250
|
-
rx_octets: float
|
|
251
|
-
loss_percentage: float
|
|
252
|
-
latency: float
|
|
253
|
-
state: str
|
|
254
|
-
tx_octets: int
|
|
255
|
-
health: HealthColor = field(converter=HealthColor)
|
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
# Copyright 2022 Cisco Systems, Inc. and its affiliates
|
|
2
|
-
|
|
3
|
-
from enum import Enum
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class DeviceModel(str, Enum):
|
|
7
|
-
# controlers
|
|
8
|
-
VSMART = "vsmart"
|
|
9
|
-
VBOND = "vedge-cloud"
|
|
10
|
-
VMANAGE = "vmanage"
|
|
11
|
-
|
|
12
|
-
# vedges
|
|
13
|
-
VEDGE = "vedge-cloud"
|
|
14
|
-
VEDGE_1000 = "vedge-1000"
|
|
15
|
-
VEDGE_2000 = "vedge-2000"
|
|
16
|
-
VEDGE_100 = "vedge-100"
|
|
17
|
-
VEDGE_100_B = "vedge-100-B"
|
|
18
|
-
VEDGE_100_WM = "vedge-100-WM"
|
|
19
|
-
VEDGE_100_M = "vedge-100-M"
|
|
20
|
-
VEDGE_100_M2 = "vedge-100-M2"
|
|
21
|
-
VEDGE_100_W2 = "vedge-100-W2"
|
|
22
|
-
VEDGE_5000 = "vedge-5000"
|
|
23
|
-
VEDGE_CCM = "vedge-ccm"
|
|
24
|
-
VEDGE_SERVICE_INSERTION = "vedge-service-insertion"
|
|
25
|
-
|
|
26
|
-
# ESR
|
|
27
|
-
VEDGE_ESR_6300 = "vedge-ESR-6300"
|
|
28
|
-
VEDGE_ESR_6300_LIC = "vedge-ESR-6300-LIC"
|
|
29
|
-
VEDGE_ESR_6300_LIC_SD_ROUTING = "vedge-ESR-6300-LIC-SD-ROUTING"
|
|
30
|
-
VEDGE_ESR_6300_NCP = "vedge-ESR-6300-NCP"
|
|
31
|
-
VEDGE_ESR_6300_NCP_SD_ROUTING = "vedge-ESR-6300-NCP-SD-ROUTING"
|
|
32
|
-
VEDGE_ESR_6300_SD_ROUTING = "vedge-ESR-6300-SD-ROUTING"
|
|
33
|
-
|
|
34
|
-
# IR
|
|
35
|
-
VEDGE_IR_1101 = "vedge-IR-1101"
|
|
36
|
-
VEDGE_IR_1101_SD_ROUTING = "vedge-IR-1101-SD-ROUTING"
|
|
37
|
-
VEDGE_IR_1821 = "vedge-IR-1821"
|
|
38
|
-
VEDGE_IR_1821_SD_ROUTING = "vedge-IR-1821-SD-ROUTING"
|
|
39
|
-
VEDGE_IR_1831 = "vedge-IR-1831"
|
|
40
|
-
VEDGE_IR_1831_SD_ROUTING = "vedge-IR-1831-SD-ROUTING"
|
|
41
|
-
VEDGE_IR_1833 = "vedge-IR-1833"
|
|
42
|
-
VEDGE_IR_1833_SD_ROUTING = "vedge-IR-1833-SD-ROUTING"
|
|
43
|
-
VEDGE_IR_1835 = "vedge-IR-1835"
|
|
44
|
-
VEDGE_IR_1835_SD_ROUTING = "vedge-IR-1835-SD-ROUTING"
|
|
45
|
-
VEDGE_IR_8140H = "vedge-IR-8140H"
|
|
46
|
-
VEDGE_IR_8140H_P = "vedge-IR-8140H-P"
|
|
47
|
-
VEDGE_IR_8140H_P_SD_ROUTING = "vedge-IR-8140H-P-SD-ROUTING"
|
|
48
|
-
VEDGE_IR_8140H_SD_ROUTING = "vedge-IR-8140H-SD-ROUTING"
|
|
49
|
-
VEDGE_IR_8340 = "vedge-IR-8340"
|
|
50
|
-
VEDGE_IR_8340_SD_ROUTING = "vedge-IR-8340-SD-ROUTING"
|
|
51
|
-
|
|
52
|
-
# ASR devices
|
|
53
|
-
VEDGE_ASR_1001_HX = "vedge-ASR-1001-HX"
|
|
54
|
-
VEDGE_ASR_1001_HX_SD_ROUTING = "vedge-ASR-1001-HX-SD-ROUTING"
|
|
55
|
-
VEDGE_ASR_1001_X = "vedge-ASR-1001-X"
|
|
56
|
-
VEDGE_ASR_1002_HX = "vedge-ASR-1002-HX"
|
|
57
|
-
VEDGE_ASR_1002_HX_SD_ROUTING = "vedge-ASR-1002-HX-SD-ROUTING"
|
|
58
|
-
VEDGE_ASR_1002_X = "vedge-ASR-1002-X"
|
|
59
|
-
VEDGE_ASR_1006_X = "vedge-ASR-1006-X"
|
|
60
|
-
|
|
61
|
-
# CSR
|
|
62
|
-
VEDGE_CSR_1000V = "vedge-CSR-1000v"
|
|
63
|
-
VEDGE_C8000V = "vedge-C8000V"
|
|
64
|
-
|
|
65
|
-
# ISR
|
|
66
|
-
VEDGE_ISR_4221 = "vedge-ISR-4221"
|
|
67
|
-
VEDGE_ISR_4221_SD_ROUTING = "vedge-ISR-4221-SD-ROUTING"
|
|
68
|
-
VEDGE_ISR_4221X = "vedge-ISR-4221X"
|
|
69
|
-
VEDGE_ISR_4221X_SD_ROUTING = "vedge-ISR-4221X-SD-ROUTING"
|
|
70
|
-
VEDGE_ISR_4321 = "vedge-ISR-4321"
|
|
71
|
-
VEDGE_ISR_4321_SD_ROUTING = "vedge-ISR-4321-SD-ROUTING"
|
|
72
|
-
VEDGE_ISR_4331 = "vedge-ISR-4331"
|
|
73
|
-
VEDGE_ISR_4331_SD_ROUTING = "vedge-ISR-4331-SD-ROUTING"
|
|
74
|
-
VEDGE_ISR_4351 = "vedge-ISR-4351"
|
|
75
|
-
VEDGE_ISR_4351_SD_ROUTING = "vedge-ISR-4351-SD-ROUTING"
|
|
76
|
-
VEDGE_ISR_4431 = "vedge-ISR-4431"
|
|
77
|
-
VEDGE_ISR_4431_SD_ROUTING = "vedge-ISR-4431-SD-ROUTING"
|
|
78
|
-
VEDGE_ISR_4451_X = "vedge-ISR-4451-X"
|
|
79
|
-
VEDGE_ISR_4451_X_SD_ROUTING = "vedge-ISR-4451-X-SD-ROUTING"
|
|
80
|
-
VEDGE_ISR_4461 = "vedge-ISR-4461"
|
|
81
|
-
VEDGE_ISR_4461_SD_ROUTING = "vedge-ISR-4461-SD-ROUTING"
|
|
82
|
-
VEDGE_ISR1100_4G = "vedge-ISR1100-4G"
|
|
83
|
-
VEDGE_ISR1100_4G_XE = "vedge-ISR1100-4G-XE"
|
|
84
|
-
VEDGE_ISR1100_4GLTE = "vedge-ISR1100-4GLTE"
|
|
85
|
-
VEDGE_ISR1100_4GLTEGB_XE = "vedge-ISR1100-4GLTEGB-XE"
|
|
86
|
-
VEDGE_ISR1100_4GLTENA_XE = "vedge-ISR1100-4GLTENA-XE"
|
|
87
|
-
VEDGE_ISR1100_6G = "vedge-ISR1100-6G"
|
|
88
|
-
VEDGE_ISR1100_6G_XE = "vedge-ISR1100-6G-XE"
|
|
89
|
-
VEDGE_ISR1100X_4G = "vedge-ISR1100X-4G"
|
|
90
|
-
VEDGE_ISR1100X_4G_XE = "vedge-ISR1100X-4G-XE"
|
|
91
|
-
VEDGE_ISR1100X_6G = "vedge-ISR1100X-6G"
|
|
92
|
-
VEDGE_ISR1100X_6G_XE = "vedge-ISR1100X-6G-XE"
|
|
93
|
-
VEDGE_ISRv = "vedge-ISRv"
|
|
94
|
-
|
|
95
|
-
# C11x
|
|
96
|
-
VEDGE_C1100TG_1N24P32A_SD_ROUTING = "vedge-C1100TG-1N24P32A-SD-ROUTING"
|
|
97
|
-
VEDGE_C1100TGX_1N24P32A_SD_ROUTING = "vedge-C1100TGX-1N24P32A-SD-ROUTING"
|
|
98
|
-
VEDGE_C1101_4P = "vedge-C1101-4P"
|
|
99
|
-
VEDGE_C1101_4P_SD_ROUTING = "vedge-C1101-4P-SD-ROUTING"
|
|
100
|
-
VEDGE_C1101_4PLTEP = "vedge-C1101-4PLTEP"
|
|
101
|
-
VEDGE_C1101_4PLTEP_SD_ROUTING = "vedge-C1101-4PLTEP-SD-ROUTING"
|
|
102
|
-
VEDGE_C1101_4PLTEPW = "vedge-C1101-4PLTEPW"
|
|
103
|
-
VEDGE_C1101_4PLTEPW_SD_ROUTING = "vedge-C1101-4PLTEPW-SD-ROUTING"
|
|
104
|
-
VEDGE_C1109_2PLTEGB = "vedge-C1109-2PLTEGB"
|
|
105
|
-
VEDGE_C1109_2PLTEGB_SD_ROUTING = "vedge-C1109-2PLTEGB-SD-ROUTING"
|
|
106
|
-
VEDGE_C1109_2PLTEUS = "vedge-C1109-2PLTEUS"
|
|
107
|
-
VEDGE_C1109_2PLTEUS_SD_ROUTING = "vedge-C1109-2PLTEUS-SD-ROUTING"
|
|
108
|
-
VEDGE_C1109_2PLTEVZ = "vedge-C1109-2PLTEVZ"
|
|
109
|
-
VEDGE_C1109_2PLTEVZ_SD_ROUTING = "vedge-C1109-2PLTEVZ-SD-ROUTING"
|
|
110
|
-
VEDGE_C1109_4PLTE2P = "vedge-C1109-4PLTE2P"
|
|
111
|
-
VEDGE_C1109_4PLTE2P_SD_ROUTING = "vedge-C1109-4PLTE2P-SD-ROUTING"
|
|
112
|
-
VEDGE_C1109_4PLTE2PW = "vedge-C1109-4PLTE2PW"
|
|
113
|
-
VEDGE_C1109_4PLTE2PW_SD_ROUTING = "vedge-C1109-4PLTE2PW-SD-ROUTING"
|
|
114
|
-
VEDGE_C1111_4P = "vedge-C1111-4P"
|
|
115
|
-
VEDGE_C1111_4P_SD_ROUTING = "vedge-C1111-4P-SD-ROUTING"
|
|
116
|
-
VEDGE_C1111_4PLTEEA = "vedge-C1111-4PLTEEA"
|
|
117
|
-
VEDGE_C1111_4PLTEEA_SD_ROUTING = "vedge-C1111-4PLTEEA-SD-ROUTING"
|
|
118
|
-
VEDGE_C1111_4PLTELA = "vedge-C1111-4PLTELA"
|
|
119
|
-
VEDGE_C1111_4PLTELA_SD_ROUTING = "vedge-C1111-4PLTELA-SD-ROUTING"
|
|
120
|
-
VEDGE_C1111_4PW = "vedge-C1111-4PW"
|
|
121
|
-
VEDGE_C1111_4PW_SD_ROUTING = "vedge-C1111-4PW-SD-ROUTING"
|
|
122
|
-
VEDGE_C1111_8P = "vedge-C1111-8P"
|
|
123
|
-
VEDGE_C1111_8P_SD_ROUTING = "vedge-C1111-8P-SD-ROUTING"
|
|
124
|
-
VEDGE_C1111_8PLTEEA = "vedge-C1111-8PLTEEA"
|
|
125
|
-
VEDGE_C1111_8PLTEEA_SD_ROUTING = "vedge-C1111-8PLTEEA-SD-ROUTING"
|
|
126
|
-
VEDGE_C1111_8PLTEEAW = "vedge-C1111-8PLTEEAW"
|
|
127
|
-
VEDGE_C1111_8PLTEEAW_SD_ROUTING = "vedge-C1111-8PLTEEAW-SD-ROUTING"
|
|
128
|
-
VEDGE_C1111_8PLTELA = "vedge-C1111-8PLTELA"
|
|
129
|
-
VEDGE_C1111_8PLTELA_SD_ROUTING = "vedge-C1111-8PLTELA-SD-ROUTING"
|
|
130
|
-
VEDGE_C1111_8PLTELAW = "vedge-C1111-8PLTELAW"
|
|
131
|
-
VEDGE_C1111_8PLTELAW_SD_ROUTING = "vedge-C1111-8PLTELAW-SD-ROUTING"
|
|
132
|
-
VEDGE_C1111_8PW = "vedge-C1111-8PW"
|
|
133
|
-
VEDGE_C1111_8PW_SD_ROUTING = "vedge-C1111-8PW-SD-ROUTING"
|
|
134
|
-
VEDGE_C1111X_8P = "vedge-C1111X-8P"
|
|
135
|
-
VEDGE_C1111X_8P_SD_ROUTING = "vedge-C1111X-8P-SD-ROUTING"
|
|
136
|
-
VEDGE_C1112_8P = "vedge-C1112-8P"
|
|
137
|
-
VEDGE_C1112_8P_SD_ROUTING = "vedge-C1112-8P-SD-ROUTING"
|
|
138
|
-
VEDGE_C1112_8PLTEEA = "vedge-C1112-8PLTEEA"
|
|
139
|
-
VEDGE_C1112_8PLTEEA_SD_ROUTING = "vedge-C1112-8PLTEEA-SD-ROUTING"
|
|
140
|
-
VEDGE_C1112_8PLTEEAWE = "vedge-C1112-8PLTEEAWE"
|
|
141
|
-
VEDGE_C1112_8PLTEEAWE_SD_ROUTING = "vedge-C1112-8PLTEEAWE-SD-ROUTING"
|
|
142
|
-
VEDGE_C1112_8PWE = "vedge-C1112-8PWE"
|
|
143
|
-
VEDGE_C1112_8PWE_SD_ROUTING = "vedge-C1112-8PWE-SD-ROUTING"
|
|
144
|
-
VEDGE_C1113_8P = "vedge-C1113-8P"
|
|
145
|
-
VEDGE_C1113_8P_SD_ROUTING = "vedge-C1113-8P-SD-ROUTING"
|
|
146
|
-
VEDGE_C1113_8PLTEEA = "vedge-C1113-8PLTEEA"
|
|
147
|
-
VEDGE_C1113_8PLTEEA_SD_ROUTING = "vedge-C1113-8PLTEEA-SD-ROUTING"
|
|
148
|
-
VEDGE_C1113_8PLTEEAW = "vedge-C1113-8PLTEEAW"
|
|
149
|
-
VEDGE_C1113_8PLTEEAW_SD_ROUTING = "vedge-C1113-8PLTEEAW-SD-ROUTING"
|
|
150
|
-
VEDGE_C1113_8PLTELA = "vedge-C1113-8PLTELA"
|
|
151
|
-
VEDGE_C1113_8PLTELA_SD_ROUTING = "vedge-C1113-8PLTELA-SD-ROUTING"
|
|
152
|
-
VEDGE_C1113_8PLTELAWZ = "vedge-C1113-8PLTELAWZ"
|
|
153
|
-
VEDGE_C1113_8PLTELAWZ_SD_ROUTING = "vedge-C1113-8PLTELAWZ-SD-ROUTING"
|
|
154
|
-
VEDGE_C1113_8PLTEW = "vedge-C1113-8PLTEW"
|
|
155
|
-
VEDGE_C1113_8PLTEW_SD_ROUTING = "vedge-C1113-8PLTEW-SD-ROUTING"
|
|
156
|
-
VEDGE_C1113_8PM = "vedge-C1113-8PM"
|
|
157
|
-
VEDGE_C1113_8PM_SD_ROUTING = "vedge-C1113-8PM-SD-ROUTING"
|
|
158
|
-
VEDGE_C1113_8PMLTEEA = "vedge-C1113-8PMLTEEA"
|
|
159
|
-
VEDGE_C1113_8PMLTEEA_SD_ROUTING = "vedge-C1113-8PMLTEEA-SD-ROUTING"
|
|
160
|
-
VEDGE_C1113_8PMWE = "vedge-C1113-8PMWE"
|
|
161
|
-
VEDGE_C1113_8PMWE_SD_ROUTING = "vedge-C1113-8PMWE-SD-ROUTING"
|
|
162
|
-
VEDGE_C1113_8PW = "vedge-C1113-8PW"
|
|
163
|
-
VEDGE_C1113_8PW_SD_ROUTING = "vedge-C1113-8PW-SD-ROUTING"
|
|
164
|
-
VEDGE_C1116_4P = "vedge-C1116-4P"
|
|
165
|
-
VEDGE_C1116_4P_SD_ROUTING = "vedge-C1116-4P-SD-ROUTING"
|
|
166
|
-
VEDGE_C1116_4PLTEEA = "vedge-C1116-4PLTEEA"
|
|
167
|
-
VEDGE_C1116_4PLTEEA_SD_ROUTING = "vedge-C1116-4PLTEEA-SD-ROUTING"
|
|
168
|
-
VEDGE_C1116_4PLTEEAWE = "vedge-C1116-4PLTEEAWE"
|
|
169
|
-
VEDGE_C1116_4PLTEEAWE_SD_ROUTING = "vedge-C1116-4PLTEEAWE-SD-ROUTING"
|
|
170
|
-
VEDGE_C1116_4PWE = "vedge-C1116-4PWE"
|
|
171
|
-
VEDGE_C1116_4PWE_SD_ROUTING = "vedge-C1116-4PWE-SD-ROUTING"
|
|
172
|
-
VEDGE_C1117_4P = "vedge-C1117-4P"
|
|
173
|
-
VEDGE_C1117_4P_SD_ROUTING = "vedge-C1117-4P-SD-ROUTING"
|
|
174
|
-
VEDGE_C1117_4PLTEEA = "vedge-C1117-4PLTEEA"
|
|
175
|
-
VEDGE_C1117_4PLTEEA_SD_ROUTING = "vedge-C1117-4PLTEEA-SD-ROUTING"
|
|
176
|
-
VEDGE_C1117_4PLTEEAW = "vedge-C1117-4PLTEEAW"
|
|
177
|
-
VEDGE_C1117_4PLTEEAW_SD_ROUTING = "vedge-C1117-4PLTEEAW-SD-ROUTING"
|
|
178
|
-
VEDGE_C1117_4PLTELA = "vedge-C1117-4PLTELA"
|
|
179
|
-
VEDGE_C1117_4PLTELA_SD_ROUTING = "vedge-C1117-4PLTELA-SD-ROUTING"
|
|
180
|
-
VEDGE_C1117_4PLTELAWZ = "vedge-C1117-4PLTELAWZ"
|
|
181
|
-
VEDGE_C1117_4PLTELAWZ_SD_ROUTING = "vedge-C1117-4PLTELAWZ-SD-ROUTING"
|
|
182
|
-
VEDGE_C1117_4PM = "vedge-C1117-4PM"
|
|
183
|
-
VEDGE_C1117_4PM_SD_ROUTING = "vedge-C1117-4PM-SD-ROUTING"
|
|
184
|
-
VEDGE_C1117_4PMLTEEA = "vedge-C1117-4PMLTEEA"
|
|
185
|
-
VEDGE_C1117_4PMLTEEA_SD_ROUTING = "vedge-C1117-4PMLTEEA-SD-ROUTING"
|
|
186
|
-
VEDGE_C1117_4PMLTEEAWE = "vedge-C1117-4PMLTEEAWE"
|
|
187
|
-
VEDGE_C1117_4PMLTEEAWE_SD_ROUTING = "vedge-C1117-4PMLTEEAWE-SD-ROUTING"
|
|
188
|
-
VEDGE_C1117_4PMWE = "vedge-C1117-4PMWE"
|
|
189
|
-
VEDGE_C1117_4PMWE_SD_ROUTING = "vedge-C1117-4PMWE-SD-ROUTING"
|
|
190
|
-
VEDGE_C1117_4PW = "vedge-C1117-4PW"
|
|
191
|
-
VEDGE_C1117_4PW_SD_ROUTING = "vedge-C1117-4PW-SD-ROUTING"
|
|
192
|
-
VEDGE_C1118_8P = "vedge-C1118-8P"
|
|
193
|
-
VEDGE_C1118_8P_SD_ROUTING = "vedge-C1118-8P-SD-ROUTING"
|
|
194
|
-
VEDGE_C1121_4P = "vedge-C1121-4P"
|
|
195
|
-
VEDGE_C1121_4P_SD_ROUTING = "vedge-C1121-4P-SD-ROUTING"
|
|
196
|
-
VEDGE_C1121_4PLTEP = "vedge-C1121-4PLTEP"
|
|
197
|
-
VEDGE_C1121_4PLTEP_SD_ROUTING = "vedge-C1121-4PLTEP-SD-ROUTING"
|
|
198
|
-
VEDGE_C1121_8P = "vedge-C1121-8P"
|
|
199
|
-
VEDGE_C1121_8P_SD_ROUTING = "vedge-C1121-8P-SD-ROUTING"
|
|
200
|
-
VEDGE_C1121_8PLTEP = "vedge-C1121-8PLTEP"
|
|
201
|
-
VEDGE_C1121_8PLTEP_SD_ROUTING = "vedge-C1121-8PLTEP-SD-ROUTING"
|
|
202
|
-
VEDGE_C1121_8PLTEPW = "vedge-C1121-8PLTEPW"
|
|
203
|
-
VEDGE_C1121_8PLTEPW_SD_ROUTING = "vedge-C1121-8PLTEPW-SD-ROUTING"
|
|
204
|
-
VEDGE_C1121X_8P = "vedge-C1121X-8P"
|
|
205
|
-
VEDGE_C1121X_8P_SD_ROUTING = "vedge-C1121X-8P-SD-ROUTING"
|
|
206
|
-
VEDGE_C1121X_8PLTEP = "vedge-C1121X-8PLTEP"
|
|
207
|
-
VEDGE_C1121X_8PLTEP_SD_ROUTING = "vedge-C1121X-8PLTEP-SD-ROUTING"
|
|
208
|
-
VEDGE_C1121X_8PLTEPW = "vedge-C1121X-8PLTEPW"
|
|
209
|
-
VEDGE_C1121X_8PLTEPW_SD_ROUTING = "vedge-C1121X-8PLTEPW-SD-ROUTING"
|
|
210
|
-
VEDGE_C1126_8PLTEP = "vedge-C1126-8PLTEP"
|
|
211
|
-
VEDGE_C1126_8PLTEP_SD_ROUTING = "vedge-C1126-8PLTEP-SD-ROUTING"
|
|
212
|
-
VEDGE_C1126X_8PLTEP = "vedge-C1126X-8PLTEP"
|
|
213
|
-
VEDGE_C1126X_8PLTEP_SD_ROUTING = "vedge-C1126X-8PLTEP-SD-ROUTING"
|
|
214
|
-
VEDGE_C1127_8PLTEP = "vedge-C1127-8PLTEP"
|
|
215
|
-
VEDGE_C1127_8PLTEP_SD_ROUTING = "vedge-C1127-8PLTEP-SD-ROUTING"
|
|
216
|
-
VEDGE_C1127_8PMLTEP = "vedge-C1127-8PMLTEP"
|
|
217
|
-
VEDGE_C1127_8PMLTEP_SD_ROUTING = "vedge-C1127-8PMLTEP-SD-ROUTING"
|
|
218
|
-
VEDGE_C1127X_8PLTEP = "vedge-C1127X-8PLTEP"
|
|
219
|
-
VEDGE_C1127X_8PLTEP_SD_ROUTING = "vedge-C1127X-8PLTEP-SD-ROUTING"
|
|
220
|
-
VEDGE_C1127X_8PMLTEP = "vedge-C1127X-8PMLTEP"
|
|
221
|
-
VEDGE_C1127X_8PMLTEP_SD_ROUTING = "vedge-C1127X-8PMLTEP-SD-ROUTING"
|
|
222
|
-
VEDGE_C1128_8PLTEP = "vedge-C1128-8PLTEP"
|
|
223
|
-
VEDGE_C1128_8PLTEP_SD_ROUTING = "vedge-C1128-8PLTEP-SD-ROUTING"
|
|
224
|
-
VEDGE_C1131_8PLTEPW = "vedge-C1131-8PLTEPW"
|
|
225
|
-
VEDGE_C1131_8PLTEPW_SD_ROUTING = "vedge-C1131-8PLTEPW-SD-ROUTING"
|
|
226
|
-
VEDGE_C1131_8PW = "vedge-C1131-8PW"
|
|
227
|
-
VEDGE_C1131_8PW_SD_ROUTING = "vedge-C1131-8PW-SD-ROUTING"
|
|
228
|
-
VEDGE_C1131X_8PLTEPW = "vedge-C1131X-8PLTEPW"
|
|
229
|
-
VEDGE_C1131X_8PLTEPW_SD_ROUTING = "vedge-C1131X-8PLTEPW-SD-ROUTING"
|
|
230
|
-
VEDGE_C1131X_8PW = "vedge-C1131X-8PW"
|
|
231
|
-
VEDGE_C1131X_8PW_SD_ROUTING = "vedge-C1131X-8PW-SD-ROUTING"
|
|
232
|
-
VEDGE_C1161_8P = "vedge-C1161-8P"
|
|
233
|
-
VEDGE_C1161_8P_SD_ROUTING = "vedge-C1161-8P-SD-ROUTING"
|
|
234
|
-
VEDGE_C1161_8PLTEP = "vedge-C1161-8PLTEP"
|
|
235
|
-
VEDGE_C1161_8PLTEP_SD_ROUTING = "vedge-C1161-8PLTEP-SD-ROUTING"
|
|
236
|
-
VEDGE_C1161X_8P = "vedge-C1161X-8P"
|
|
237
|
-
VEDGE_C1161X_8P_SD_ROUTING = "vedge-C1161X-8P-SD-ROUTING"
|
|
238
|
-
VEDGE_C1161X_8PLTEP = "vedge-C1161X-8PLTEP"
|
|
239
|
-
VEDGE_C1161X_8PLTEP_SD_ROUTING = "vedge-C1161X-8PLTEP-SD-ROUTING"
|
|
240
|
-
|
|
241
|
-
# C8xxx
|
|
242
|
-
VEDGE_C8000V_SD_ROUTING = "vedge-C8000V-SD-ROUTING"
|
|
243
|
-
VEDGE_C8131_5T1S = "vedge-C8131-5T1S"
|
|
244
|
-
VEDGE_C8131_5T1S_SD_ROUTING = "vedge-C8131-5T1S-SD-ROUTING"
|
|
245
|
-
VEDGE_C8131_8T2S = "vedge-C8131-8T2S"
|
|
246
|
-
VEDGE_C8131_8T2S_SD_ROUTING = "vedge-C8131-8T2S-SD-ROUTING"
|
|
247
|
-
VEDGE_C8131X_1C_8P2S = "vedge-C8131X-1C-8P2S"
|
|
248
|
-
VEDGE_C8131X_1C_8P2S_SD_ROUTING = "vedge-C8131X-1C-8P2S-SD-ROUTING"
|
|
249
|
-
VEDGE_C8131X_1C_8T2S = "vedge-C8131X-1C-8T2S"
|
|
250
|
-
VEDGE_C8131X_1C_8T2S_SD_ROUTING = "vedge-C8131X-1C-8T2S-SD-ROUTING"
|
|
251
|
-
VEDGE_C8200_1N_4T = "vedge-C8200-1N-4T"
|
|
252
|
-
VEDGE_C8200_1N_4T_SD_ROUTING = "vedge-C8200-1N-4T-SD-ROUTING"
|
|
253
|
-
VEDGE_C8200L_1N_4T = "vedge-C8200L-1N-4T"
|
|
254
|
-
VEDGE_C8200L_1N_4T_SD_ROUTING = "vedge-C8200L-1N-4T-SD-ROUTING"
|
|
255
|
-
VEDGE_C8230_1N_2M2X = "vedge-C8230-1N-2M2X"
|
|
256
|
-
VEDGE_C8230_1N_2M2X_SD_ROUTING = "vedge-C8230-1N-2M2X-SD-ROUTING"
|
|
257
|
-
VEDGE_C8230E_8TM2X = "vedge-C8230E-8TM2X"
|
|
258
|
-
VEDGE_C8230E_8TM2X_SD_ROUTING = "vedge-C8230E-8TM2X-SD-ROUTING"
|
|
259
|
-
VEDGE_C8230X_1N_2M2X = "vedge-C8230X-1N-2M2X"
|
|
260
|
-
VEDGE_C8230X_1N_2M2X_SD_ROUTING = "vedge-C8230X-1N-2M2X-SD-ROUTING"
|
|
261
|
-
VEDGE_C8230X_8M2X = "vedge-C8230X-8M2X"
|
|
262
|
-
VEDGE_C8230X_8M2X_SD_ROUTING = "vedge-C8230X-8M2X-SD-ROUTING"
|
|
263
|
-
VEDGE_C8300_1N1S_4T2X = "vedge-C8300-1N1S-4T2X"
|
|
264
|
-
VEDGE_C8300_1N1S_4T2X_SD_ROUTING = "vedge-C8300-1N1S-4T2X-SD-ROUTING"
|
|
265
|
-
VEDGE_C8300_1N1S_6T = "vedge-C8300-1N1S-6T"
|
|
266
|
-
VEDGE_C8300_1N1S_6T_SD_ROUTING = "vedge-C8300-1N1S-6T-SD-ROUTING"
|
|
267
|
-
VEDGE_C8300_2N2S_4G2X = "vedge-C8300-2N2S-4G2X"
|
|
268
|
-
VEDGE_C8300_2N2S_4T2X = "vedge-C8300-2N2S-4T2X"
|
|
269
|
-
VEDGE_C8300_2N2S_4T2X_SD_ROUTING = "vedge-C8300-2N2S-4T2X-SD-ROUTING"
|
|
270
|
-
VEDGE_C8300_2N2S_6T = "vedge-C8300-2N2S-6T"
|
|
271
|
-
VEDGE_C8300_2N2S_6T_SD_ROUTING = "vedge-C8300-2N2S-6T-SD-ROUTING"
|
|
272
|
-
VEDGE_C8500_12X = "vedge-C8500-12X"
|
|
273
|
-
VEDGE_C8500_12X_SD_ROUTING = "vedge-C8500-12X-SD-ROUTING"
|
|
274
|
-
VEDGE_C8500_12X4QC = "vedge-C8500-12X4QC"
|
|
275
|
-
VEDGE_C8500_12X4QC_SD_ROUTING = "vedge-C8500-12X4QC-SD-ROUTING"
|
|
276
|
-
VEDGE_C8500_20X6C = "vedge-C8500-20X6C"
|
|
277
|
-
VEDGE_C8500_20X6C_SD_ROUTING = "vedge-C8500-20X6C-SD-ROUTING"
|
|
278
|
-
VEDGE_C8500L_8S2X2Y = "vedge-C8500L-8S2X2Y"
|
|
279
|
-
VEDGE_C8500L_8S4X = "vedge-C8500L-8S4X"
|
|
280
|
-
VEDGE_C8500L_8S4X_SD_ROUTING = "vedge-C8500L-8S4X-SD-ROUTING"
|
|
281
|
-
VEDGE_C8500L_8S8X4Y = "vedge-C8500L-8S8X4Y"
|
|
282
|
-
VEDGE_C9500_40X = "vedge-C9500-40X"
|
|
283
|
-
VEDGE_C9500_48Y4C = "vedge-C9500-48Y4C"
|
|
284
|
-
|
|
285
|
-
# ISRv
|
|
286
|
-
VEDGE_ISRV = "vedge-ISRv"
|
|
287
|
-
|
|
288
|
-
# CELLULAR GATEWAY
|
|
289
|
-
CELLULAR_GATEWAY_CG113_4GW6A = "cellular-gateway-CG113-4GW6A"
|
|
290
|
-
CELLULAR_GATEWAY_CG113_4GW6B = "cellular-gateway-CG113-4GW6B"
|
|
291
|
-
CELLULAR_GATEWAY_CG113_4GW6E = "cellular-gateway-CG113-4GW6E"
|
|
292
|
-
CELLULAR_GATEWAY_CG113_4GW6H = "cellular-gateway-CG113-4GW6H"
|
|
293
|
-
CELLULAR_GATEWAY_CG113_4GW6Q = "cellular-gateway-CG113-4GW6Q"
|
|
294
|
-
CELLULAR_GATEWAY_CG113_4GW6Z = "cellular-gateway-CG113-4GW6Z"
|
|
295
|
-
CELLULAR_GATEWAY_CG113_W6A = "cellular-gateway-CG113-W6A"
|
|
296
|
-
CELLULAR_GATEWAY_CG113_W6B = "cellular-gateway-CG113-W6B"
|
|
297
|
-
CELLULAR_GATEWAY_CG113_W6E = "cellular-gateway-CG113-W6E"
|
|
298
|
-
CELLULAR_GATEWAY_CG113_W6H = "cellular-gateway-CG113-W6H"
|
|
299
|
-
CELLULAR_GATEWAY_CG113_W6Q = "cellular-gateway-CG113-W6Q"
|
|
300
|
-
CELLULAR_GATEWAY_CG113_W6Z = "cellular-gateway-CG113-W6Z"
|
|
301
|
-
CELLULAR_GATEWAY_CG418_E = "cellular-gateway-CG418-E"
|
|
302
|
-
CELLULAR_GATEWAY_CG522_E = "cellular-gateway-CG522-E"
|
|
303
|
-
|
|
304
|
-
# NFVIS
|
|
305
|
-
VEDGE_NFVIS_C8200_UCPE = "vedge-nfvis-C8200-UCPE"
|
|
306
|
-
VEDGE_NFVIS_C8200_UCPEVM = "vedge-nfvis-C8200-UCPEVM"
|
|
307
|
-
VEDGE_NFVIS_C8300_UCPE_1N20 = "vedge-nfvis-C8300-UCPE-1N20"
|
|
308
|
-
VEDGE_NFVIS_CSP_5216 = "vedge-nfvis-CSP-5216"
|
|
309
|
-
VEDGE_NFVIS_CSP_5228 = "vedge-nfvis-CSP-5228"
|
|
310
|
-
VEDGE_NFVIS_CSP_5400 = "vedge-nfvis-CSP-5400"
|
|
311
|
-
VEDGE_NFVIS_CSP_5436 = "vedge-nfvis-CSP-5436"
|
|
312
|
-
VEDGE_NFVIS_CSP_5444 = "vedge-nfvis-CSP-5444"
|
|
313
|
-
VEDGE_NFVIS_CSP_5456 = "vedge-nfvis-CSP-5456"
|
|
314
|
-
VEDGE_NFVIS_CSP2100 = "vedge-nfvis-CSP2100"
|
|
315
|
-
VEDGE_NFVIS_CSP2100_X1 = "vedge-nfvis-CSP2100-X1"
|
|
316
|
-
VEDGE_NFVIS_CSP2100_X2 = "vedge-nfvis-CSP2100-X2"
|
|
317
|
-
VEDGE_NFVIS_ENCS5400 = "vedge-nfvis-ENCS5400"
|
|
318
|
-
VEDGE_NFVIS_UCSC_C220_M6S = "vedge-nfvis-UCSC-C220-M6S"
|
|
319
|
-
VEDGE_NFVIS_UCSC_C240_M6S = "vedge-nfvis-UCSC-C240-M6S"
|
|
320
|
-
VEDGE_NFVIS_UCSC_C240_M6SX = "vedge-nfvis-UCSC-C240-M6SX"
|
|
321
|
-
VEDGE_NFVIS_UCSC_E = "vedge-nfvis-UCSC-E"
|
|
322
|
-
VEDGE_NFVIS_UCSC_M5 = "vedge-nfvis-UCSC-M5"
|
catalystwan/utils/dict.py
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
# Copyright 2023 Cisco Systems, Inc. and its affiliates
|
|
2
|
-
|
|
3
|
-
from typing import Any, Dict, List, Optional
|
|
4
|
-
|
|
5
|
-
from pydantic import BaseModel
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
def merge(a, b, path=None):
|
|
9
|
-
if path is None:
|
|
10
|
-
path = []
|
|
11
|
-
for key in b:
|
|
12
|
-
if key in a:
|
|
13
|
-
if isinstance(a[key], dict) and isinstance(b[key], dict):
|
|
14
|
-
merge(a[key], b[key], path + [str(key)])
|
|
15
|
-
elif a[key] == b[key]:
|
|
16
|
-
pass # same leaf value
|
|
17
|
-
else:
|
|
18
|
-
raise Exception(f"Conflict at {'.'.join(path + [str(key)])}")
|
|
19
|
-
else:
|
|
20
|
-
a[key] = b[key]
|
|
21
|
-
return a
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
class FlattenedDictValue(BaseModel):
|
|
25
|
-
value: Any
|
|
26
|
-
data_path: List[str]
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
def flatten_dict(original_dict: Dict[str, Any]) -> Dict[str, List[FlattenedDictValue]]:
|
|
30
|
-
"""
|
|
31
|
-
Flattens a dictionary.
|
|
32
|
-
Each key corresponds to a list of FlattenedDictValue, allowing us to handle repeated keys in nesting.
|
|
33
|
-
"""
|
|
34
|
-
|
|
35
|
-
def get_flattened_dict(
|
|
36
|
-
original_dict: Dict[str, Any],
|
|
37
|
-
flattened_dict: Optional[Dict[str, List[FlattenedDictValue]]] = None,
|
|
38
|
-
path: Optional[List[str]] = None,
|
|
39
|
-
):
|
|
40
|
-
if flattened_dict is None:
|
|
41
|
-
flattened_dict = {}
|
|
42
|
-
if path is None:
|
|
43
|
-
path = []
|
|
44
|
-
for key, value in original_dict.items():
|
|
45
|
-
if isinstance(value, dict):
|
|
46
|
-
get_flattened_dict(value, flattened_dict, path=path + [key])
|
|
47
|
-
else:
|
|
48
|
-
if key not in flattened_dict:
|
|
49
|
-
flattened_dict[key] = []
|
|
50
|
-
if isinstance(value, list) and all([isinstance(v, dict) for v in value]):
|
|
51
|
-
flattened_value = FlattenedDictValue(
|
|
52
|
-
value=[get_flattened_dict(v, {}) for v in value], data_path=path
|
|
53
|
-
)
|
|
54
|
-
flattened_dict[key].append(flattened_value)
|
|
55
|
-
else:
|
|
56
|
-
flattened_dict[key].append(FlattenedDictValue(value=value, data_path=path))
|
|
57
|
-
return flattened_dict
|
|
58
|
-
|
|
59
|
-
flattened_dict: Dict[str, List[FlattenedDictValue]] = {}
|
|
60
|
-
get_flattened_dict(original_dict, flattened_dict)
|
|
61
|
-
return flattened_dict
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# Copyright 2024 Cisco Systems, Inc. and its affiliates
|
|
2
|
-
|
|
3
|
-
from typing import Any
|
|
4
|
-
|
|
5
|
-
from catalystwan.api.templates.models.supported import available_models
|
|
6
|
-
from catalystwan.exceptions import TemplateTypeError
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
def choose_model(type_value: str) -> Any:
|
|
10
|
-
"""Chooses correct model based on provided type
|
|
11
|
-
|
|
12
|
-
With provided type of feature template searches supported by catalystwan models
|
|
13
|
-
and returns correct for given type of feature template class.
|
|
14
|
-
|
|
15
|
-
Args:
|
|
16
|
-
type_value: type of feature template
|
|
17
|
-
|
|
18
|
-
Returns:
|
|
19
|
-
model
|
|
20
|
-
|
|
21
|
-
Raises:
|
|
22
|
-
TemplateTypeError: Raises when the model is not supported by catalystwan.
|
|
23
|
-
"""
|
|
24
|
-
if type_value not in available_models:
|
|
25
|
-
for model in available_models.values():
|
|
26
|
-
if model.type == type_value: # type: ignore
|
|
27
|
-
return model
|
|
28
|
-
raise TemplateTypeError(f"Feature template type '{type_value}' is not supported.")
|
|
29
|
-
|
|
30
|
-
return available_models[type_value]
|