Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
b3f5658
updated network fabric extension to reflect version 2024-02-15-preview
Nov 14, 2024
f9726fb
updates based on code review
Nov 15, 2024
3b12808
version updated to 7.0.0
Nov 18, 2024
1c0f544
Merge branch 'Azure:main' into main
nafizhaider32 Nov 18, 2024
d0e45eb
fix linting
Nov 18, 2024
1b9b959
Merge branch 'main' of https://github.com/nafizhaider32/azure-cli-ext…
Nov 18, 2024
995e948
Merge branch 'Azure:main' into main
nafizhaider32 Nov 19, 2024
8b75aea
Merge branch 'Azure:main' into main
nafizhaider32 Nov 20, 2024
09efafd
Merge branch 'Azure:main' into main
nafizhaider32 Nov 25, 2024
5b0f72e
Merge branch 'Azure:main' into main
nafizhaider32 Feb 7, 2025
a66c6aa
new api changes
Feb 7, 2025
d5de533
Merge branch 'Azure:main' into main
nafizhaider32 Feb 18, 2025
941f0cf
Update for bugfix with 7.1 CLI
Feb 18, 2025
102fe25
fixing lint issue
Feb 18, 2025
9526316
aligning with new api short description
Feb 18, 2025
189b131
reverting version change
Feb 19, 2025
9d89164
Merge branch 'Azure:main' into main
nafizhaider32 Feb 19, 2025
f3add59
Merge branch 'Azure:main' into main
nafizhaider32 Feb 26, 2025
aad4f37
new cli version for network fabric
Feb 26, 2025
1b8d995
lint fixes
Feb 27, 2025
4c0167d
fixing lint rule
Feb 27, 2025
ffb4de1
Merge branch 'Azure:main' into main
nafizhaider32 Feb 27, 2025
55fe999
fix
Feb 27, 2025
6f4dba2
Merge branch 'main' of https://github.com/nafizhaider32/azure-cli-ext…
Feb 27, 2025
c96ef5c
testing yaml update again
Feb 27, 2025
1d9ac55
some more updates
Feb 27, 2025
51c93a7
nf create lint rules
Feb 27, 2025
642d5b7
internal network lint rule
Feb 27, 2025
f5f714f
last lint rules
Feb 27, 2025
36af23d
fix file name
Feb 27, 2025
704323e
fix password scan
Feb 27, 2025
5b4bc53
updated to say redacted
Feb 28, 2025
79c2289
Merge branch 'Azure:main' into main
nafizhaider32 Feb 28, 2025
bdfab4c
fix redacted with quotes
Feb 28, 2025
d848569
Merge branch 'main' of https://github.com/nafizhaider32/azure-cli-ext…
Feb 28, 2025
eb889b8
this is the one
Feb 28, 2025
74126a2
Merge branch 'Azure:main' into main
nafizhaider32 Mar 17, 2025
3a14bfa
Merge branch 'Azure:main' into main
nafizhaider32 Mar 26, 2025
f8a88f1
updating nexus identity
Mar 26, 2025
498ca9f
Merge branch 'Azure:main' into main
nafizhaider32 Jul 15, 2025
5daacfa
updated existing example verbiage and added new examples:
Jul 15, 2025
70c119f
fix some typos
Jul 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/managednetworkfabric/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Release History
===============
8.0.0b7
* Added missing examples and updated verbiage on existing examples

8.0.0b6
* Enables the 'device refresh-configuration' command that was previously disabled/removed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
class Create(AAZCommand):
"""Create a Access Control List resource

:example: Creates an Access Control List with Configuration type as "File".
:example: Create an Access Control List with Configuration type as "File".
az networkfabric acl create --resource-group "example-rg" --location "westus3" --resource-name "example-accesscontrollist" --configuration-type "File" --acls-url "https://ACL-Storage-URL"

:example: Creates an Access Control List with Configuration type as "Inline".
:example: Create an Access Control List with Configuration type as "Inline".
az networkfabric acl create --resource-group "example-rg" --location "westus3" --resource-name "example-accesscontrollist" --configuration-type "Inline" --default-action "Permit" --dynamic-match-configurations "[{ipGroups:[{name:'example-ipGroup',ipAddressType:IPv4,ipPrefixes:['10.20.3.1/20']}],vlanGroups:[{name:'example-vlanGroup',vlans:['20-30']}],portGroups:[{name:'example-portGroup',ports:['100-200']}]}]" --match-configurations "[{matchConfigurationName:'example-match',sequenceNumber:123,ipAddressType:IPv4,matchConditions:[{etherTypes:['0x1'],fragments:['0xff00-0xffff'],ipLengths:['4094-9214'],ttlValues:[23],dscpMarkings:[32],portCondition:{flags:[established],portType:SourcePort,layer4Protocol:TCP,ports:['1-20'],portGroupNames:['example-portGroup']},protocolTypes:[TCP],vlanMatchCondition:{vlans:['20-30'],innerVlans:[30],vlanGroupNames:['example-vlanGroup']},ipCondition:{type:SourceIP,prefixType:Prefix,ipPrefixValues:['10.20.20.20/12'],ipGroupNames:['example-ipGroup']}}],actions:[{type:Count,counterName:'example-counter'}]}]"

:example: Help text for sub parameters under the specific parent can be viewed by using the shorthand syntax '??'. See https://github.com/Azure/azure-cli/tree/dev/doc/shorthand_syntax.md for more about shorthand syntax.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class Reboot(AAZCommand):
"""Reboot the Network Device.

:example: NetworkDevices_Reboot_MaximumSet_Gen
:example: Reboot the Network Device
az networkfabric device reboot --resource-group example-rg --resource-name example-device --reboot-type GracefulRebootWithZTP
"""

Expand Down Expand Up @@ -246,13 +246,16 @@ def _build_schema_error_detail_read(cls, _schema):
additional_info.Element = AAZObjectType()

_element = _schema_error_detail_read.additional_info.Element
_element.info = AAZFreeFormDictType(
_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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class RefreshConfiguration(AAZCommand):
"""Refreshes the configuration the Network Device.

:example: NetworkDevices_RefreshConfiguration_MaximumSet_Gen
:example: Run refresh configuration on the Network Device
az networkfabric device refresh-configuration --resource-group example-rg --resource-name example-device
"""

Expand Down Expand Up @@ -222,13 +222,16 @@ def _build_schema_error_detail_read(cls, _schema):
additional_info.Element = AAZObjectType()

_element = _schema_error_detail_read.additional_info.Element
_element.info = AAZFreeFormDictType(
_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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class RunRo(AAZCommand):
"""Run the RO Command on the Network Device.

:example: Run ro on the network device
:example: Run ro on the Network Device
az networkfabric device run-ro --resource-name "example-device" --resource-group "example-rg" --ro-command "example command"
"""

Expand Down Expand Up @@ -275,13 +275,16 @@ def _build_schema_error_detail_read(cls, _schema):
additional_info.Element = AAZObjectType()

_element = _schema_error_detail_read.additional_info.Element
_element.info = AAZFreeFormDictType(
_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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class RunRw(AAZCommand):
"""Run the RW Command on the Network Device.

:example: Run rw on the network device
:example: Run rw on the Network Device
az networkfabric device run-rw --resource-name "example-device" --resource-group "example-rg" --rw-command "example command"
"""

Expand Down Expand Up @@ -248,13 +248,16 @@ def _build_schema_error_detail_read(cls, _schema):
additional_info.Element = AAZObjectType()

_element = _schema_error_detail_read.additional_info.Element
_element.info = AAZFreeFormDictType(
_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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class UpdateAdminState(AAZCommand):
"""Updates the Administrative state of the Network Device.

:example: Update admin state
:example: Update the admin state of the Network Device
az networkfabric device update-admin-state --resource-name "example-device-name" --resource-group "example-RG" --state "UnderMaintenance"
"""

Expand Down Expand Up @@ -259,13 +259,16 @@ def _build_schema_error_detail_read(cls, _schema):
additional_info.Element = AAZObjectType()

_element = _schema_error_detail_read.additional_info.Element
_element.info = AAZFreeFormDictType(
_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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
)
class Upgrade(AAZCommand):
"""Upgrades the version of the Network Device.

:example: Upgrade the Network Device
az networkfabric device upgrade --resource-group example-rg --resource-name example-device --version 1.0.0
"""

_aaz_info = {
Expand Down Expand Up @@ -242,13 +245,16 @@ def _build_schema_error_detail_read(cls, _schema):
additional_info.Element = AAZObjectType()

_element = _schema_error_detail_read.additional_info.Element
_element.info = AAZFreeFormDictType(
_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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
)
class UpdateBfdAdministrativeState(AAZCommand):
"""BFD administrative state for either static or bgp for internalNetwork.

:example: Update bfd admin state of External Network
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
"""

_aaz_info = {
Expand Down Expand Up @@ -265,13 +268,16 @@ def _build_schema_error_detail_read(cls, _schema):
additional_info.Element = AAZObjectType()

_element = _schema_error_detail_read.additional_info.Element
_element.info = AAZFreeFormDictType(
_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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
)
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 --network-fabric-name example-fabric
"""

_aaz_info = {
Expand Down Expand Up @@ -218,13 +221,16 @@ def _build_schema_error_detail_read(cls, _schema):
additional_info.Element = AAZObjectType()

_element = _schema_error_detail_read.additional_info.Element
_element.info = AAZFreeFormDictType(
_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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
)
class CommitBatchStatus(AAZCommand):
"""Post action: Returns a status of commit batch operation.

:example: Run commit batch status on the Network Fabric
az networkfabric fabric commit-batch-status --resource-group example-rg --network-fabric-name example-fabric --commit-batch-id batch-id
"""

_aaz_info = {
Expand Down Expand Up @@ -256,13 +259,16 @@ def _build_schema_error_detail_read(cls, _schema):
additional_info.Element = AAZObjectType()

_element = _schema_error_detail_read.additional_info.Element
_element.info = AAZFreeFormDictType(
_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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class CommitConfiguration(AAZCommand):
"""Atomic update of the given Network Fabric instance. Sync update of NFA resources at Fabric level.

:example: Commit Configuration
:example: Run commit configuration on the Network Fabric
az networkfabric fabric commit-configuration --resource-group "example-rg" --resource-name "example-fabric"
"""

Expand Down Expand Up @@ -222,13 +222,16 @@ def _build_schema_error_detail_read(cls, _schema):
additional_info.Element = AAZObjectType()

_element = _schema_error_detail_read.additional_info.Element
_element.info = AAZFreeFormDictType(
_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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,16 @@ def _build_schema_error_detail_read(cls, _schema):
additional_info.Element = AAZObjectType()

_element = _schema_error_detail_read.additional_info.Element
_element.info = AAZFreeFormDictType(
_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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
)
class DiscardCommitBatch(AAZCommand):
"""Post action: Discards a Batch operation in progress.

:example: Run discard commit batch on the Network Fabric
az networkfabric fabric discard-commit-batch --resource-group example-rg --network-fabric-name example-fabric --commit-batch-id batchId1
"""

_aaz_info = {
Expand Down Expand Up @@ -241,13 +244,16 @@ def _build_schema_error_detail_read(cls, _schema):
additional_info.Element = AAZObjectType()

_element = _schema_error_detail_read.additional_info.Element
_element.info = AAZFreeFormDictType(
_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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
)
class LockFabric(AAZCommand):
"""Post action: Triggers network fabric lock operation.

:example: Run lock fabric on the Network Fabric
az networkfabric fabric lock-fabric --resource-group example-rg --network-fabric-name example-networkFabric --lock-type Administrative --action Lock
"""

_aaz_info = {
Expand Down Expand Up @@ -250,13 +253,16 @@ def _build_schema_error_detail_read(cls, _schema):
additional_info.Element = AAZObjectType()

_element = _schema_error_detail_read.additional_info.Element
_element.info = AAZFreeFormDictType(
_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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,16 @@ def _build_schema_error_detail_read(cls, _schema):
additional_info.Element = AAZObjectType()

_element = _schema_error_detail_read.additional_info.Element
_element.info = AAZFreeFormDictType(
_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)
Expand Down
Loading
Loading