diff --git a/src/managednetworkfabric/HISTORY.rst b/src/managednetworkfabric/HISTORY.rst index e1210de8fa5..29f5f494a32 100644 --- a/src/managednetworkfabric/HISTORY.rst +++ b/src/managednetworkfabric/HISTORY.rst @@ -2,6 +2,12 @@ Release History =============== +8.2.1 +++++++ +* Removing the following commands as they are not supported in the API: +* - `nni update-bfd-administrative-state` +* - `fabric arm-configuration-diff` + 8.2.0 ++++++ * All fields with swagger setting `format=arm-id` are now nullable via the CLI. @@ -29,38 +35,38 @@ Release History 8.0.0b6 ++++++ -* Enables the 'device refresh-configuration' command that was previously disabled/removed. -* Renames the 'network-device-name' parameter on 'device refresh-configuration' and 'device reboot' operations to 'resource-name' for better overall consistency. +* Enables the `device refresh-configuration` command that was previously disabled/removed. +* Renames the `network-device-name` parameter on `device refresh-configuration` and `device reboot` operations to `resource-name` for better overall consistency. 8.0.0b5 ++++++ -* Fixes 'taprule create' command as the API cannot support float values for 'polling-interval-in-seconds' option, i.e. - '30.0'. +* Fixes `taprule create` command as the API cannot support float values for `polling-interval-in-seconds` option, i.e. - `30.0`. * Fixes the response object model for validate-configuration operations that cause response of the operation to not show any output. * az core cli updated to version 2.70, aaz_dev updated to version 4.2.0, and azdev to version 0.2.4. 8.0.0b4 ++++++ -* Fixes 'device run-ro' command for missing fields in the response. +* Fixes `device run-ro` command for missing fields in the response. 8.0.0b3 ++++++ -* Adding custom output formatting for 'device' run-ro command +* Adding custom output formatting for `device run-ro` command 8.0.0b2 ++++++ * Making the Network Monitor resource available through the CLI. -* Within the the IPv4/IPv6 PrefixLimitPatchProperties structure for External and Internal Networks, renamed the 'softLimit' property to 'threshold'. +* Within the the IPv4/IPv6 PrefixLimitPatchProperties structure for External and Internal Networks, renamed the `softLimit` property to `threshold`. 8.0.0b1 ++++++ * New preview CLI version for latest api 2024-06-15-preview. * az core cli updated to version 2.67, aaz_dev updated to version 3.2.0, and azdev to version 0.1.94. * New `fabric identity` commands introduced: `fabric identity assign`, `fabric identity remove`, `fabric identity show`. -* Expose the 'update' command for the 'interface' resource that was previously removed in post generate script. +* Expose the `update` command for the `interface` resource that was previously removed in post generate script. 7.1.0 ++++++ -* Bug fix: expose the 'update-admin-state' command for the 'interface' resource that was removed from the CLI by invalid post-processing logic. +* Bug fix: expose the `update-admin-state` command for the `interface` resource that was removed from the CLI by invalid post-processing logic. 7.0.0 ++++++ @@ -77,15 +83,15 @@ Release History 6.1.0 ++++++ -* Added device update-admin-state support +* Added `device update-admin-state` support 6.0.0 ++++++ -* Added device run rw support +* Added `device run rw` support 5.2.4 ++++++ -* Added device run ro support +* Added `device run ro` support * Allowed null values for acl ids in nni 5.2.1 @@ -94,7 +100,7 @@ Release History 5.2.0 ++++++ -* Added device run ro support +* Added `device run ro` support * Allowed null values for acl ids in nni 5.0.0 @@ -105,7 +111,7 @@ Release History 4.2.0 ++++++ * Added support for upgrading Device and Network Fabric resource. -* Added support for validate configuration in Network Fabric resources. +* Added support for `validate configuration` in Network Fabric resources. 4.1.1 ++++++ @@ -115,20 +121,20 @@ Release History ++++++ * Supported for fabric commit-configuration functionality * PATCH support added for -* - Route Policy, -* - Access Control List, -* - IPCommunity, -* - IPExtendedCommunity, -* - IPPrefix, -* - L2 Isolation Domain, -* - L3 Isolation Domain, -* - Internal Network, -* - External Network +* - Route Policy, +* - Access Control List, +* - IPCommunity, +* - IPExtendedCommunity, +* - IPPrefix, +* - L2 Isolation Domain, +* - L3 Isolation Domain, +* - Internal Network, +* - External Network 3.2.0 ++++++ * Supported ACL -* Added new parameter "defaultAction" in RoutePolicies and ACL +* Added new parameter `defaultAction` in RoutePolicies and ACL * Supported NeighborGroup * Supported Tap * Supported TapRule diff --git a/src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/fabric/__init__.py b/src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/fabric/__init__.py index 63c6b66cd89..3ce7b064728 100644 --- a/src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/fabric/__init__.py +++ b/src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/fabric/__init__.py @@ -9,7 +9,6 @@ # flake8: noqa from .__cmd_group import * -from ._arm_configuration_diff import * from ._commit_batch_status import * from ._commit_configuration import * from ._create import * diff --git a/src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/fabric/_arm_configuration_diff.py b/src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/fabric/_arm_configuration_diff.py deleted file mode 100644 index 9b36102e3be..00000000000 --- a/src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/fabric/_arm_configuration_diff.py +++ /dev/null @@ -1,245 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -# Code generated by aaz-dev-tools -# -------------------------------------------------------------------------------------------- - -# pylint: skip-file -# flake8: noqa - -from azure.cli.core.aaz import * - - -@register_command( - "networkfabric fabric arm-configuration-diff", -) -class ArmConfigurationDiff(AAZCommand): - """Post action: Triggers diff of NetworkFabric ARM Configuration. - - :example: Run arm configuration diff on the Network Fabric - az networkfabric fabric arm-configuration-diff --resource-group example-rg --resource-name example-fabric - """ - - _aaz_info = { - "version": "2024-06-15-preview", - "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.managednetworkfabric/networkfabrics/{}/armconfigurationdiff", "2024-06-15-preview"], - ] - } - - AZ_SUPPORT_NO_WAIT = True - - def _handler(self, command_args): - super()._handler(command_args) - return self.build_lro_poller(self._execute_operations, self._output) - - _args_schema = None - - @classmethod - def _build_arguments_schema(cls, *args, **kwargs): - if cls._args_schema is not None: - return cls._args_schema - cls._args_schema = super()._build_arguments_schema(*args, **kwargs) - - # define Arg Group "" - - _args_schema = cls._args_schema - _args_schema.network_fabric_name = AAZStrArg( - options=["--resource-name", "--network-fabric-name"], - help="Name of the Network Fabric.", - required=True, - id_part="name", - fmt=AAZStrArgFormat( - pattern="^[a-zA-Z]{1}[a-zA-Z0-9-_]{2,127}$", - ), - ) - _args_schema.resource_group = AAZResourceGroupNameArg( - required=True, - ) - return cls._args_schema - - def _execute_operations(self): - self.pre_operations() - yield self.NetworkFabricsArmConfigurationDiff(ctx=self.ctx)() - self.post_operations() - - @register_callback - def pre_operations(self): - pass - - @register_callback - def post_operations(self): - pass - - def _output(self, *args, **kwargs): - result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) - return result - - class NetworkFabricsArmConfigurationDiff(AAZHttpOperation): - CLIENT_TYPE = "MgmtClient" - - def __call__(self, *args, **kwargs): - request = self.make_request() - session = self.client.send_request(request=request, stream=False, **kwargs) - if session.http_response.status_code in [202]: - return self.client.build_lro_polling( - self.ctx.args.no_wait, - session, - self.on_200, - self.on_error, - lro_options={"final-state-via": "location"}, - path_format_arguments=self.url_parameters, - ) - if session.http_response.status_code in [200]: - return self.client.build_lro_polling( - self.ctx.args.no_wait, - session, - self.on_200, - self.on_error, - lro_options={"final-state-via": "location"}, - path_format_arguments=self.url_parameters, - ) - - return self.on_error(session.http_response) - - @property - def url(self): - return self.client.format_url( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabrics/{networkFabricName}/armConfigurationDiff", - **self.url_parameters - ) - - @property - def method(self): - return "POST" - - @property - def error_format(self): - return "MgmtErrorFormat" - - @property - def url_parameters(self): - parameters = { - **self.serialize_url_param( - "networkFabricName", self.ctx.args.network_fabric_name, - required=True, - ), - **self.serialize_url_param( - "resourceGroupName", self.ctx.args.resource_group, - required=True, - ), - **self.serialize_url_param( - "subscriptionId", self.ctx.subscription_id, - required=True, - ), - } - return parameters - - @property - def query_parameters(self): - parameters = { - **self.serialize_query_param( - "api-version", "2024-06-15-preview", - required=True, - ), - } - return parameters - - @property - def header_parameters(self): - parameters = { - **self.serialize_header_param( - "Accept", "application/json", - ), - } - return parameters - - def on_200(self, session): - data = self.deserialize_http_content(session) - self.ctx.set_var( - "instance", - data, - schema_builder=self._build_schema_on_200 - ) - - _schema_on_200 = None - - @classmethod - def _build_schema_on_200(cls): - if cls._schema_on_200 is not None: - return cls._schema_on_200 - - cls._schema_on_200 = AAZObjectType() - - _schema_on_200 = cls._schema_on_200 - _schema_on_200.configuration_diff_url = AAZStrType( - serialized_name="configurationDiffUrl", - ) - _schema_on_200.error = AAZObjectType() - _ArmConfigurationDiffHelper._build_schema_error_detail_read(_schema_on_200.error) - - return cls._schema_on_200 - - -class _ArmConfigurationDiffHelper: - """Helper class for ArmConfigurationDiff""" - - _schema_error_detail_read = None - - @classmethod - def _build_schema_error_detail_read(cls, _schema): - if cls._schema_error_detail_read is not None: - _schema.additional_info = cls._schema_error_detail_read.additional_info - _schema.code = cls._schema_error_detail_read.code - _schema.details = cls._schema_error_detail_read.details - _schema.message = cls._schema_error_detail_read.message - _schema.target = cls._schema_error_detail_read.target - return - - cls._schema_error_detail_read = _schema_error_detail_read = AAZObjectType() - - error_detail_read = _schema_error_detail_read - error_detail_read.additional_info = AAZListType( - serialized_name="additionalInfo", - flags={"read_only": True}, - ) - error_detail_read.code = AAZStrType( - flags={"read_only": True}, - ) - error_detail_read.details = AAZListType( - flags={"read_only": True}, - ) - error_detail_read.message = AAZStrType( - flags={"read_only": True}, - ) - error_detail_read.target = AAZStrType( - flags={"read_only": True}, - ) - - additional_info = _schema_error_detail_read.additional_info - additional_info.Element = AAZObjectType() - - _element = _schema_error_detail_read.additional_info.Element - _element.info = AAZDictType( - flags={"read_only": True}, - ) - _element.type = AAZStrType( - flags={"read_only": True}, - ) - - info = _schema_error_detail_read.additional_info.Element.info - info.Element = AAZAnyType() - - details = _schema_error_detail_read.details - details.Element = AAZObjectType() - cls._build_schema_error_detail_read(details.Element) - - _schema.additional_info = cls._schema_error_detail_read.additional_info - _schema.code = cls._schema_error_detail_read.code - _schema.details = cls._schema_error_detail_read.details - _schema.message = cls._schema_error_detail_read.message - _schema.target = cls._schema_error_detail_read.target - - -__all__ = ["ArmConfigurationDiff"] diff --git a/src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/nni/__init__.py b/src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/nni/__init__.py index 2b9d273f972..db73033039b 100644 --- a/src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/nni/__init__.py +++ b/src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/nni/__init__.py @@ -14,5 +14,4 @@ from ._list import * from ._show import * from ._update import * -from ._update_bfd_administrative_state import * from ._wait import * diff --git a/src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/nni/_update_bfd_administrative_state.py b/src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/nni/_update_bfd_administrative_state.py deleted file mode 100644 index ff52c465dd5..00000000000 --- a/src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/nni/_update_bfd_administrative_state.py +++ /dev/null @@ -1,292 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -# Code generated by aaz-dev-tools -# -------------------------------------------------------------------------------------------- - -# pylint: skip-file -# flake8: noqa - -from azure.cli.core.aaz import * - - -@register_command( - "networkfabric nni update-bfd-administrative-state", -) -class UpdateBfdAdministrativeState(AAZCommand): - """Updates the Admin State. - - :example: Update bfd admin state of the Network To Network Interconnect - az networkfabric nni update-bfd-administrative-state --resource-group example-rg --network-fabric-name example-nf --resource-name example-nni --route-type Static --administrative-state Enable - """ - - _aaz_info = { - "version": "2024-06-15-preview", - "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.managednetworkfabric/networkfabrics/{}/networktonetworkinterconnects/{}/updatebfdadministrativestate", "2024-06-15-preview"], - ] - } - - AZ_SUPPORT_NO_WAIT = True - - def _handler(self, command_args): - super()._handler(command_args) - return self.build_lro_poller(self._execute_operations, self._output) - - _args_schema = None - - @classmethod - def _build_arguments_schema(cls, *args, **kwargs): - if cls._args_schema is not None: - return cls._args_schema - cls._args_schema = super()._build_arguments_schema(*args, **kwargs) - - # define Arg Group "" - - _args_schema = cls._args_schema - _args_schema.network_fabric_name = AAZStrArg( - options=["--network-fabric-name"], - help="Name of the Network Fabric.", - required=True, - id_part="name", - fmt=AAZStrArgFormat( - pattern="^[a-zA-Z]{1}[a-zA-Z0-9-_]{2,127}$", - ), - ) - _args_schema.network_to_network_interconnect_name = AAZStrArg( - options=["--nni-name", "--resource-name", "--network-to-network-interconnect-name"], - help="Name of the Network to Network Interconnect.", - required=True, - id_part="child_name_1", - fmt=AAZStrArgFormat( - pattern="^[a-zA-Z]{1}[a-zA-Z0-9-_]{2,127}$", - ), - ) - _args_schema.resource_group = AAZResourceGroupNameArg( - required=True, - ) - - # define Arg Group "Body" - - _args_schema = cls._args_schema - _args_schema.administrative_state = AAZStrArg( - options=["--administrative-state"], - arg_group="Body", - help="State. Select either enable or disable.", - enum={"Disabled": "Disabled", "Enabled": "Enabled", "MAT": "MAT", "RMA": "RMA"}, - ) - _args_schema.route_type = AAZStrArg( - options=["--route-type"], - arg_group="Body", - help="Route Type. Choose either Static or OptionA.", - enum={"OptionA": "OptionA", "Static": "Static"}, - ) - return cls._args_schema - - def _execute_operations(self): - self.pre_operations() - yield self.NetworkToNetworkInterconnectsUpdateBfdAdministrativeState(ctx=self.ctx)() - self.post_operations() - - @register_callback - def pre_operations(self): - pass - - @register_callback - def post_operations(self): - pass - - def _output(self, *args, **kwargs): - result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) - return result - - class NetworkToNetworkInterconnectsUpdateBfdAdministrativeState(AAZHttpOperation): - CLIENT_TYPE = "MgmtClient" - - def __call__(self, *args, **kwargs): - request = self.make_request() - session = self.client.send_request(request=request, stream=False, **kwargs) - if session.http_response.status_code in [202]: - return self.client.build_lro_polling( - self.ctx.args.no_wait, - session, - self.on_200, - self.on_error, - lro_options={"final-state-via": "location"}, - path_format_arguments=self.url_parameters, - ) - if session.http_response.status_code in [200]: - return self.client.build_lro_polling( - self.ctx.args.no_wait, - session, - self.on_200, - self.on_error, - lro_options={"final-state-via": "location"}, - path_format_arguments=self.url_parameters, - ) - - return self.on_error(session.http_response) - - @property - def url(self): - return self.client.format_url( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabrics/{networkFabricName}/networkToNetworkInterconnects/{networkToNetworkInterconnectName}/updateBfdAdministrativeState", - **self.url_parameters - ) - - @property - def method(self): - return "POST" - - @property - def error_format(self): - return "MgmtErrorFormat" - - @property - def url_parameters(self): - parameters = { - **self.serialize_url_param( - "networkFabricName", self.ctx.args.network_fabric_name, - required=True, - ), - **self.serialize_url_param( - "networkToNetworkInterconnectName", self.ctx.args.network_to_network_interconnect_name, - required=True, - ), - **self.serialize_url_param( - "resourceGroupName", self.ctx.args.resource_group, - required=True, - ), - **self.serialize_url_param( - "subscriptionId", self.ctx.subscription_id, - required=True, - ), - } - return parameters - - @property - def query_parameters(self): - parameters = { - **self.serialize_query_param( - "api-version", "2024-06-15-preview", - required=True, - ), - } - return parameters - - @property - def header_parameters(self): - parameters = { - **self.serialize_header_param( - "Content-Type", "application/json", - ), - **self.serialize_header_param( - "Accept", "application/json", - ), - } - return parameters - - @property - def content(self): - _content_value, _builder = self.new_content_builder( - self.ctx.args, - typ=AAZObjectType, - typ_kwargs={"flags": {"required": True, "client_flatten": True}} - ) - _builder.set_prop("administrativeState", AAZStrType, ".administrative_state") - _builder.set_prop("routeType", AAZStrType, ".route_type") - - return self.serialize_content(_content_value) - - def on_200(self, session): - data = self.deserialize_http_content(session) - self.ctx.set_var( - "instance", - data, - schema_builder=self._build_schema_on_200 - ) - - _schema_on_200 = None - - @classmethod - def _build_schema_on_200(cls): - if cls._schema_on_200 is not None: - return cls._schema_on_200 - - cls._schema_on_200 = AAZObjectType() - - _schema_on_200 = cls._schema_on_200 - _schema_on_200.administrative_state = AAZStrType( - serialized_name="administrativeState", - ) - _schema_on_200.error = AAZObjectType() - _UpdateBfdAdministrativeStateHelper._build_schema_error_detail_read(_schema_on_200.error) - _schema_on_200.route_type = AAZStrType( - serialized_name="routeType", - ) - - return cls._schema_on_200 - - -class _UpdateBfdAdministrativeStateHelper: - """Helper class for UpdateBfdAdministrativeState""" - - _schema_error_detail_read = None - - @classmethod - def _build_schema_error_detail_read(cls, _schema): - if cls._schema_error_detail_read is not None: - _schema.additional_info = cls._schema_error_detail_read.additional_info - _schema.code = cls._schema_error_detail_read.code - _schema.details = cls._schema_error_detail_read.details - _schema.message = cls._schema_error_detail_read.message - _schema.target = cls._schema_error_detail_read.target - return - - cls._schema_error_detail_read = _schema_error_detail_read = AAZObjectType() - - error_detail_read = _schema_error_detail_read - error_detail_read.additional_info = AAZListType( - serialized_name="additionalInfo", - flags={"read_only": True}, - ) - error_detail_read.code = AAZStrType( - flags={"read_only": True}, - ) - error_detail_read.details = AAZListType( - flags={"read_only": True}, - ) - error_detail_read.message = AAZStrType( - flags={"read_only": True}, - ) - error_detail_read.target = AAZStrType( - flags={"read_only": True}, - ) - - additional_info = _schema_error_detail_read.additional_info - additional_info.Element = AAZObjectType() - - _element = _schema_error_detail_read.additional_info.Element - _element.info = AAZDictType( - flags={"read_only": True}, - ) - _element.type = AAZStrType( - flags={"read_only": True}, - ) - - info = _schema_error_detail_read.additional_info.Element.info - info.Element = AAZAnyType() - - details = _schema_error_detail_read.details - details.Element = AAZObjectType() - cls._build_schema_error_detail_read(details.Element) - - _schema.additional_info = cls._schema_error_detail_read.additional_info - _schema.code = cls._schema_error_detail_read.code - _schema.details = cls._schema_error_detail_read.details - _schema.message = cls._schema_error_detail_read.message - _schema.target = cls._schema_error_detail_read.target - - -__all__ = ["UpdateBfdAdministrativeState"] diff --git a/src/managednetworkfabric/azext_managednetworkfabric/tests/latest/test_nf_armconfigurationdiff.py b/src/managednetworkfabric/azext_managednetworkfabric/tests/latest/test_nf_armconfigurationdiff.py index bc7ca05500a..1fdfc8974aa 100644 --- a/src/managednetworkfabric/azext_managednetworkfabric/tests/latest/test_nf_armconfigurationdiff.py +++ b/src/managednetworkfabric/azext_managednetworkfabric/tests/latest/test_nf_armconfigurationdiff.py @@ -5,55 +5,55 @@ # -------------------------------------------------------------------------------------------- # pylint: disable=too-few-public-methods,unnecessary-pass,unused-argument -""" -NF tests scenarios -""" +# """ +# NF tests scenarios +# """ -from azure.cli.testsdk import ScenarioTest +# from azure.cli.testsdk import ScenarioTest -from .config import CONFIG +# from .config import CONFIG -def setup_scenario1(test): - """Env setup_scenario1""" - pass +# def setup_scenario1(test): +# """Env setup_scenario1""" +# pass -def cleanup_scenario1(test): - """Env cleanup_scenario1""" - pass +# def cleanup_scenario1(test): +# """Env cleanup_scenario1""" +# pass -def call_scenario1(test): - """Testcase: scenario1""" - setup_scenario1(test) - step_arm_configuration_diff(test) - cleanup_scenario1(test) +# def call_scenario1(test): +# """Testcase: scenario1""" +# setup_scenario1(test) +# step_arm_configuration_diff(test) +# cleanup_scenario1(test) -def step_arm_configuration_diff(test, checks=None): - """nf arm configuration diff operation""" - if checks is None: - checks = [] - test.cmd( - "az networkfabric fabric arm-configuration-diff --resource-name {commitNFName} --resource-group {commitNFRGName}" - ) +# def step_arm_configuration_diff(test, checks=None): +# """nf arm configuration diff operation""" +# if checks is None: +# checks = [] +# test.cmd( +# "az networkfabric fabric arm-configuration-diff --resource-name {commitNFName} --resource-group {commitNFRGName}" +# ) -class GA_NFArmConfigurationDiffsScenarioTest1(ScenarioTest): - """NFScenario test""" +# class GA_NFArmConfigurationDiffsScenarioTest1(ScenarioTest): +# """NFScenario test""" - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) - self.kwargs.update( - { - "commitNFRGName": CONFIG.get( - "NETWORK_FABRIC", "commit_nf_resource_group" - ), - "commitNFName": CONFIG.get("NETWORK_FABRIC", "commit_nf_name"), - } - ) +# def __init__(self, *args, **kwargs): +# super().__init__(*args, **kwargs) +# self.kwargs.update( +# { +# "commitNFRGName": CONFIG.get( +# "NETWORK_FABRIC", "commit_nf_resource_group" +# ), +# "commitNFName": CONFIG.get("NETWORK_FABRIC", "commit_nf_name"), +# } +# ) - def test_GA_nf_arm_configuration_diff_scenario1(self): - """test scenario for NF arm configuration diff operations""" - call_scenario1(self) +# def test_GA_nf_arm_configuration_diff_scenario1(self): +# """test scenario for NF arm configuration diff operations""" +# call_scenario1(self) diff --git a/src/managednetworkfabric/azext_managednetworkfabric/tests/latest/test_nni_update_bfd_admin_state.py b/src/managednetworkfabric/azext_managednetworkfabric/tests/latest/test_nni_update_bfd_admin_state.py index c938b448f5b..be75ca60cc8 100644 --- a/src/managednetworkfabric/azext_managednetworkfabric/tests/latest/test_nni_update_bfd_admin_state.py +++ b/src/managednetworkfabric/azext_managednetworkfabric/tests/latest/test_nni_update_bfd_admin_state.py @@ -7,81 +7,81 @@ from azure.cli.testsdk.scenario_tests import AllowLargeResponse -""" -NNI tests scenarios -""" - -from azure.cli.testsdk import ScenarioTest - -from .config import CONFIG - - -def setup_scenario(test): - """Env setup_scenario""" - pass - - -def cleanup_scenario(test): - """Env cleanup_scenario""" - pass - - -def call_scenario1(test): - """Testcase: scenario1""" - setup_scenario(test) - step_update_bfd_admin_state_nf_name(test, checks=[]) - cleanup_scenario(test) - - -def call_scenario2(test): - """Testcase: scenario2""" - setup_scenario(test) - step_update_bfd_admin_state_resource_name(test, checks=[]) - cleanup_scenario(test) - - -def step_update_bfd_admin_state_nf_name(test, checks=None): - """nni run Update BFD Admin State operation""" - if checks is None: - checks = [] - test.cmd( - "az networkfabric nni update-bfd-administrative-state --network-fabric-name {fabric} --nni-name {name}" - " --resource-group {rg} --administrative-state {administrativeState} --route-type {routeType}", - checks=checks, - ) - - -def step_update_bfd_admin_state_resource_name(test, checks=None): - """nni run Update BFD Admin State operation""" - if checks is None: - checks = [] - test.cmd( - "az networkfabric nni update-bfd-administrative-state --network-fabric-name {fabric} --resource-name {name}" - " --resource-group {rg} --administrative-state {administrativeState} --route-type {routeType}", - checks=checks, - ) - - -class GA_NNIUpdateBFDAdminStateTest1(ScenarioTest): - """NNIScenario test""" - - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) - self.kwargs.update( - { - "name": CONFIG.get("NETWORK_TO_NETWORK_INTERCONNECT", "name"), - "rg": CONFIG.get("NETWORK_TO_NETWORK_INTERCONNECT", "resource_group"), - "fabric": CONFIG.get("NETWORK_TO_NETWORK_INTERCONNECT", "fabric"), - "administrativeState": CONFIG.get( - "NETWORK_TO_NETWORK_INTERCONNECT", "administrative_state" - ), - "routeType": CONFIG.get( - "NETWORK_TO_NETWORK_INTERCONNECT", "route_type" - ), - } - ) - - @AllowLargeResponse() - def test_GA_nni_UpdateBFDAdminState_scenario1(self): - """test scenario for NNI CRUD operations""" - call_scenario1(self) +# """ +# NNI tests scenarios +# """ + +# from azure.cli.testsdk import ScenarioTest + +# from .config import CONFIG + + +# def setup_scenario(test): +# """Env setup_scenario""" +# pass + + +# def cleanup_scenario(test): +# """Env cleanup_scenario""" +# pass + + +# def call_scenario1(test): +# """Testcase: scenario1""" +# setup_scenario(test) +# step_update_bfd_admin_state_nf_name(test, checks=[]) +# cleanup_scenario(test) + + +# def call_scenario2(test): +# """Testcase: scenario2""" +# setup_scenario(test) +# step_update_bfd_admin_state_resource_name(test, checks=[]) +# cleanup_scenario(test) + + +# def step_update_bfd_admin_state_nf_name(test, checks=None): +# """nni run Update BFD Admin State operation""" +# if checks is None: +# checks = [] +# test.cmd( +# "az networkfabric nni update-bfd-administrative-state --network-fabric-name {fabric} --nni-name {name}" +# " --resource-group {rg} --administrative-state {administrativeState} --route-type {routeType}", +# checks=checks, +# ) + + +# def step_update_bfd_admin_state_resource_name(test, checks=None): +# """nni run Update BFD Admin State operation""" +# if checks is None: +# checks = [] +# test.cmd( +# "az networkfabric nni update-bfd-administrative-state --network-fabric-name {fabric} --resource-name {name}" +# " --resource-group {rg} --administrative-state {administrativeState} --route-type {routeType}", +# checks=checks, +# ) + + +# class GA_NNIUpdateBFDAdminStateTest1(ScenarioTest): +# """NNIScenario test""" + +# def __init__(self, *args, **kwargs): +# super().__init__(*args, **kwargs) +# self.kwargs.update( +# { +# "name": CONFIG.get("NETWORK_TO_NETWORK_INTERCONNECT", "name"), +# "rg": CONFIG.get("NETWORK_TO_NETWORK_INTERCONNECT", "resource_group"), +# "fabric": CONFIG.get("NETWORK_TO_NETWORK_INTERCONNECT", "fabric"), +# "administrativeState": CONFIG.get( +# "NETWORK_TO_NETWORK_INTERCONNECT", "administrative_state" +# ), +# "routeType": CONFIG.get( +# "NETWORK_TO_NETWORK_INTERCONNECT", "route_type" +# ), +# } +# ) + +# @AllowLargeResponse() +# def test_GA_nni_UpdateBFDAdminState_scenario1(self): +# """test scenario for NNI CRUD operations""" +# call_scenario1(self) diff --git a/src/managednetworkfabric/setup.py b/src/managednetworkfabric/setup.py index 46e6d423f6b..a980f7da35b 100644 --- a/src/managednetworkfabric/setup.py +++ b/src/managednetworkfabric/setup.py @@ -10,7 +10,7 @@ # HISTORY.rst entry. -VERSION = '8.2.0' +VERSION = '8.2.1' # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers