Skip to content

Commit 2604bb7

Browse files
Updating managednetworkfabric CLI version 8-beta to stable cli version 8.x for 2024-06-15-preview. (#9042)
* Updating version 8-beta to stable cli version 8.x for 2024-06-15-preview * Updating version 8-beta to stable cli version 8.x for 2024-06-15-preview * Updating version 8-beta to stable cli version 8.x for 2024-06-15-preview * Updating version 8-beta to stable cli version 8.x for 2024-06-15-preview * Updating version 8-beta to stable cli version 8.x for 2024-06-15-preview * fixing tests * cleanup * cleanup * cleanup * cleanup * cleanup * updating history.rst for consistency * updating history.rst for consistency * updating history.rst for consistency * updating history.rst for consistency * Updating service names for networkcloud and networkfabric CLI's * Updating service names for networkcloud and networkfabric CLI's
1 parent 741c706 commit 2604bb7

26 files changed

Lines changed: 85 additions & 56 deletions

src/managednetworkfabric/HISTORY.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
33
Release History
44
===============
5+
8.0.0
6+
++++++
7+
* Updating version 8-beta to stable cli version 8.x for 2024-06-15-preview.
8+
* Adds missing `--resource-name` parameter to many commands to keep better consistency.
9+
* This version requires a minimum of 2.75.0 Azure core CLI. See install instructions: https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/docs-ref-conceptual/Latest-version/install-azure-cli.md
10+
511
8.0.0b7
612
++++++
713
* Added missing examples and updated verbiage on existing examples

src/managednetworkfabric/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Azure CLI Managednetworkfabric Extension #
2-
This is an extension to Azure CLI to manage Managednetworkfabric resources.
1+
# Azure CLI Nexus Network Fabric Extension #
2+
This is an extension to Azure CLI to manage Nexus Network Fabric resources.
33

44
## How to use ##
55

src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/externalnetwork/_update_bfd_administrative_state.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class UpdateBfdAdministrativeState(AAZCommand):
1818
"""BFD administrative state for either static or bgp for internalNetwork.
1919
2020
:example: Update bfd admin state of External Network
21-
az networkfabric externalnetwork update-bfd-administrative-state --resource-group example-rg --l3-isolation-domain-name example-externalnetwork --external-network-name example-ext --route-type Static --administrative-state Enable
21+
az networkfabric externalnetwork update-bfd-administrative-state --resource-group example-rg --l3-isolation-domain-name example-externalnetwork --resource-name example-ext --route-type Static --administrative-state Enable
2222
"""
2323

2424
_aaz_info = {
@@ -46,7 +46,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
4646

4747
_args_schema = cls._args_schema
4848
_args_schema.external_network_name = AAZStrArg(
49-
options=["--external-network-name"],
49+
options=["--resource-name", "--external-network-name"],
5050
help="Name of the External Network.",
5151
required=True,
5252
id_part="child_name_1",

src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/fabric/_arm_configuration_diff.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ArmConfigurationDiff(AAZCommand):
1818
"""Post action: Triggers diff of NetworkFabric ARM Configuration.
1919
2020
:example: Run arm configuration diff on the Network Fabric
21-
az networkfabric fabric arm-configuration-diff --resource-group example-rg --network-fabric-name example-fabric
21+
az networkfabric fabric arm-configuration-diff --resource-group example-rg --resource-name example-fabric
2222
"""
2323

2424
_aaz_info = {
@@ -46,7 +46,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
4646

4747
_args_schema = cls._args_schema
4848
_args_schema.network_fabric_name = AAZStrArg(
49-
options=["--network-fabric-name"],
49+
options=["--resource-name", "--network-fabric-name"],
5050
help="Name of the Network Fabric.",
5151
required=True,
5252
id_part="name",

src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/fabric/_commit_batch_status.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class CommitBatchStatus(AAZCommand):
1818
"""Post action: Returns a status of commit batch operation.
1919
2020
:example: Run commit batch status on the Network Fabric
21-
az networkfabric fabric commit-batch-status --resource-group example-rg --network-fabric-name example-fabric --commit-batch-id batch-id
21+
az networkfabric fabric commit-batch-status --resource-group example-rg --resource-name example-fabric --commit-batch-id batch-id
2222
"""
2323

2424
_aaz_info = {
@@ -46,7 +46,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
4646

4747
_args_schema = cls._args_schema
4848
_args_schema.network_fabric_name = AAZStrArg(
49-
options=["--network-fabric-name"],
49+
options=["--resource-name", "--network-fabric-name"],
5050
help="Name of the Network Fabric.",
5151
required=True,
5252
id_part="name",

src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/fabric/_discard_commit_batch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class DiscardCommitBatch(AAZCommand):
1818
"""Post action: Discards a Batch operation in progress.
1919
2020
:example: Run discard commit batch on the Network Fabric
21-
az networkfabric fabric discard-commit-batch --resource-group example-rg --network-fabric-name example-fabric --commit-batch-id batchId1
21+
az networkfabric fabric discard-commit-batch --resource-group example-rg --resource-name example-fabric --commit-batch-id batchId1
2222
"""
2323

2424
_aaz_info = {
@@ -46,7 +46,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
4646

4747
_args_schema = cls._args_schema
4848
_args_schema.network_fabric_name = AAZStrArg(
49-
options=["--network-fabric-name"],
49+
options=["--resource-name", "--network-fabric-name"],
5050
help="Name of the Network Fabric.",
5151
required=True,
5252
id_part="name",

src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/fabric/_lock_fabric.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class LockFabric(AAZCommand):
1818
"""Post action: Triggers network fabric lock operation.
1919
2020
:example: Run lock fabric on the Network Fabric
21-
az networkfabric fabric lock-fabric --resource-group example-rg --network-fabric-name example-networkFabric --lock-type Administrative --action Lock
21+
az networkfabric fabric lock-fabric --resource-group example-rg --resource-name example-networkFabric --lock-type Administrative --action Lock
2222
"""
2323

2424
_aaz_info = {
@@ -46,7 +46,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
4646

4747
_args_schema = cls._args_schema
4848
_args_schema.network_fabric_name = AAZStrArg(
49-
options=["--network-fabric-name"],
49+
options=["--resource-name", "--network-fabric-name"],
5050
help="Name of the Network Fabric.",
5151
required=True,
5252
id_part="name",

src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/fabric/_view_device_configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ViewDeviceConfiguration(AAZCommand):
1818
"""Post action: Triggers view of network fabric configuration.
1919
2020
:example: View device configuration on the Network Fabric
21-
az networkfabric fabric view-device-configuration --resource-group example-rg --network-fabric-name example-fabric
21+
az networkfabric fabric view-device-configuration --resource-group example-rg --resource-name example-fabric
2222
"""
2323

2424
_aaz_info = {
@@ -46,7 +46,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
4646

4747
_args_schema = cls._args_schema
4848
_args_schema.network_fabric_name = AAZStrArg(
49-
options=["--network-fabric-name"],
49+
options=["--resource-name", "--network-fabric-name"],
5050
help="Name of the Network Fabric.",
5151
required=True,
5252
id_part="name",

src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/fabric/identity/_assign.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Assign(AAZCommand):
1818
"""Assign the user or system managed identities.
1919
2020
:example: Assign identity on the Network Fabric
21-
az networkfabric fabric identity assign --resource-group example-rg --network-fabric-name example-fabric --system-assigned
21+
az networkfabric fabric identity assign --resource-group example-rg --resource-name example-fabric --system-assigned
2222
"""
2323

2424
_aaz_info = {
@@ -47,7 +47,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
4747

4848
_args_schema = cls._args_schema
4949
_args_schema.network_fabric_name = AAZStrArg(
50-
options=["-n", "--name", "--network-fabric-name"],
50+
options=["-n", "--name", "--resource-name", "--network-fabric-name"],
5151
help="Name of the Network Fabric.",
5252
required=True,
5353
fmt=AAZStrArgFormat(

src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/fabric/identity/_remove.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Remove(AAZCommand):
1818
"""Remove the user or system managed identities.
1919
2020
:example: Remove identity on the Network Fabric
21-
az networkfabric fabric identity remove --resource group example-rg --network-fabric-name example-fabric --system-assigned
21+
az networkfabric fabric identity remove --resource group example-rg --resource-name example-fabric --system-assigned
2222
"""
2323

2424
_aaz_info = {
@@ -47,7 +47,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
4747

4848
_args_schema = cls._args_schema
4949
_args_schema.network_fabric_name = AAZStrArg(
50-
options=["-n", "--name", "--network-fabric-name"],
50+
options=["-n", "--name", "--resource-name", "--network-fabric-name"],
5151
help="Name of the Network Fabric.",
5252
required=True,
5353
fmt=AAZStrArgFormat(

0 commit comments

Comments
 (0)