Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions src/managednetworkfabric/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

Release History
===============
9.0.0b1
++++++
* Per the v8.1.0 30-day [Breaking Change] notice - the folowing updates have been implmemented:
* - Command group `fabric identity` has been removed as current az-cli-core does not support GET-PATCH. This includes the `assign`, `remove`, `show` sub-commands.
* - Parameter `route-prefix-limit` has been removed from `l3domain create` and `l3domain update` commands.
* - Parameter `version` on `device upgrade` command is now required.

8.2.1
++++++
* Removing the following commands as they are not supported in the API:
Expand Down
10 changes: 7 additions & 3 deletions src/managednetworkfabric/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Microsoft Azure CLI 'managednetworkfabric' Extension #

This is an extension to Azure CLI to manage Microsoft.ManagedNetworkFabric resources.
# Azure CLI Managednetworkfabric Extension #
This is an extension to Azure CLI to manage Managednetworkfabric resources.

## How to use ##

Expand All @@ -23,10 +22,14 @@ Below is a high-level overview of managednetworkfabric commands.
| Commands | Description |
|--------------------------------------|--------------------------------------------------|
| az networkfabric acl | Manage Access Control List Resource. |
| az networkfabric bootstrapdevice | Manage Network Bootstrap Device Resource. |
| az networkfabric bootstrapinterface | Manage Network Bootstrap Interface Resource. |
| az networkfabric controller | Manage Network Fabric Controller Resource. |
| az networkfabric device | Manage Network Device Resource. |
| az networkfabric devicesku | Manage Network Device SKU Resource. |
| az networkfabric externalnetwork | Manage External Network Resource. |
| az networkfabric fabric | Manage Network Fabric Resource. |
| az networkfabric fabricsku | Manage Network Fabric SKU Resource |
| az networkfabric interface | Manage Network Interface Resource. |
| az networkfabric internalnetwork | Manage Internal Network Resource. |
| az networkfabric internetgateway | Manage Internet Gateway Resource. |
Expand All @@ -37,6 +40,7 @@ Below is a high-level overview of managednetworkfabric commands.
| az networkfabric l2domain | Manage L2 Isolation Domain Resource. |
| az networkfabric l3domain | Manage L3 Isolation Domain Resource. |
| az networkfabric neighborgroup | Manage Neighbor Group Resource. |
| az networkfabric networkmonitor | Manage Network Monitor Resource. |
| az networkfabric nni | Manage Network To Network Interconnect Resource. |
| az networkfabric npb | Manage Network Packet Broker Resource. |
| az networkfabric rack | Manage Network Rack Resource. |
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class Delete(AAZCommand):
"""

_aaz_info = {
"version": "2024-06-15-preview",
"version": "2025-07-15",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.managednetworkfabric/accesscontrollists/{}", "2024-06-15-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.managednetworkfabric/accesscontrollists/{}", "2025-07-15"],
]
}

Expand Down Expand Up @@ -145,7 +145,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-06-15-preview",
"api-version", "2025-07-15",
required=True,
),
}
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class Show(AAZCommand):
"""

_aaz_info = {
"version": "2024-06-15-preview",
"version": "2025-07-15",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.managednetworkfabric/accesscontrollists/{}", "2024-06-15-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.managednetworkfabric/accesscontrollists/{}", "2025-07-15"],
]
}

Expand Down Expand Up @@ -123,7 +123,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-06-15-preview",
"api-version", "2025-07-15",
required=True,
),
}
Expand Down Expand Up @@ -197,6 +197,9 @@ def _build_schema_on_200(cls):
serialized_name="configurationType",
flags={"required": True},
)
properties.control_plane_acl_configuration = AAZListType(
serialized_name="controlPlaneAclConfiguration",
)
properties.default_action = AAZStrType(
serialized_name="defaultAction",
)
Expand All @@ -220,11 +223,95 @@ def _build_schema_on_200(cls):
properties.match_configurations = AAZListType(
serialized_name="matchConfigurations",
)
properties.network_fabric_ids = AAZListType(
serialized_name="networkFabricIds",
flags={"read_only": True},
)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)

control_plane_acl_configuration = cls._schema_on_200.properties.control_plane_acl_configuration
control_plane_acl_configuration.Element = AAZObjectType()

_element = cls._schema_on_200.properties.control_plane_acl_configuration.Element
_element.ip_address_type = AAZStrType(
serialized_name="ipAddressType",
)
_element.match_configurations = AAZListType(
serialized_name="matchConfigurations",
)

match_configurations = cls._schema_on_200.properties.control_plane_acl_configuration.Element.match_configurations
match_configurations.Element = AAZObjectType()

_element = cls._schema_on_200.properties.control_plane_acl_configuration.Element.match_configurations.Element
_element.action = AAZObjectType()
_element.match_condition = AAZObjectType(
serialized_name="matchCondition",
)
_element.match_configuration_name = AAZStrType(
serialized_name="matchConfigurationName",
)
_element.sequence_number = AAZIntType(
serialized_name="sequenceNumber",
)

action = cls._schema_on_200.properties.control_plane_acl_configuration.Element.match_configurations.Element.action
action.remark_comment = AAZStrType(
serialized_name="remarkComment",
)
action.type = AAZStrType()

match_condition = cls._schema_on_200.properties.control_plane_acl_configuration.Element.match_configurations.Element.match_condition
match_condition.flags = AAZListType()
match_condition.icmp_configuration = AAZObjectType(
serialized_name="icmpConfiguration",
)
_ShowHelper._build_schema_icmp_configuration_properties_read(match_condition.icmp_configuration)
match_condition.ip_condition = AAZObjectType(
serialized_name="ipCondition",
)
match_condition.port_condition = AAZObjectType(
serialized_name="portCondition",
)
match_condition.protocol_types = AAZStrType(
serialized_name="protocolTypes",
)
match_condition.ttl_match_condition = AAZObjectType(
serialized_name="ttlMatchCondition",
)

flags = cls._schema_on_200.properties.control_plane_acl_configuration.Element.match_configurations.Element.match_condition.flags
flags.Element = AAZStrType()

ip_condition = cls._schema_on_200.properties.control_plane_acl_configuration.Element.match_configurations.Element.match_condition.ip_condition
ip_condition.destination_ip_prefix = AAZStrType(
serialized_name="destinationIpPrefix",
)
ip_condition.source_ip_prefix = AAZStrType(
serialized_name="sourceIpPrefix",
)

port_condition = cls._schema_on_200.properties.control_plane_acl_configuration.Element.match_configurations.Element.match_condition.port_condition
port_condition.destination_ports = AAZObjectType(
serialized_name="destinationPorts",
)
_ShowHelper._build_schema_control_plane_acl_port_condition_read(port_condition.destination_ports)
port_condition.source_ports = AAZObjectType(
serialized_name="sourcePorts",
)
_ShowHelper._build_schema_control_plane_acl_port_condition_read(port_condition.source_ports)

ttl_match_condition = cls._schema_on_200.properties.control_plane_acl_configuration.Element.match_configurations.Element.match_condition.ttl_match_condition
ttl_match_condition.ttl_match_type = AAZStrType(
serialized_name="ttlMatchType",
)
ttl_match_condition.ttl_value = AAZStrType(
serialized_name="ttlValue",
)

dynamic_match_configurations = cls._schema_on_200.properties.dynamic_match_configurations
dynamic_match_configurations.Element = AAZObjectType()

Expand Down Expand Up @@ -347,6 +434,7 @@ def _build_schema_on_200(cls):
_element.icmp_configuration = AAZObjectType(
serialized_name="icmpConfiguration",
)
_ShowHelper._build_schema_icmp_configuration_properties_read(_element.icmp_configuration)
_element.ip_condition = AAZObjectType(
serialized_name="ipCondition",
)
Expand Down Expand Up @@ -378,14 +466,6 @@ def _build_schema_on_200(cls):
fragments = cls._schema_on_200.properties.match_configurations.Element.match_conditions.Element.fragments
fragments.Element = AAZStrType()

icmp_configuration = cls._schema_on_200.properties.match_configurations.Element.match_conditions.Element.icmp_configuration
icmp_configuration.icmp_types = AAZListType(
serialized_name="icmpTypes",
)

icmp_types = cls._schema_on_200.properties.match_configurations.Element.match_conditions.Element.icmp_configuration.icmp_types
icmp_types.Element = AAZStrType()

ip_condition = cls._schema_on_200.properties.match_configurations.Element.match_conditions.Element.ip_condition
ip_condition.ip_group_names = AAZListType(
serialized_name="ipGroupNames",
Expand Down Expand Up @@ -457,6 +537,11 @@ def _build_schema_on_200(cls):
vlans = cls._schema_on_200.properties.match_configurations.Element.match_conditions.Element.vlan_match_condition.vlans
vlans.Element = AAZStrType()

network_fabric_ids = cls._schema_on_200.properties.network_fabric_ids
network_fabric_ids.Element = AAZStrType(
nullable=True,
)

system_data = cls._schema_on_200.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
Expand Down Expand Up @@ -486,5 +571,48 @@ def _build_schema_on_200(cls):
class _ShowHelper:
"""Helper class for Show"""

_schema_control_plane_acl_port_condition_read = None

@classmethod
def _build_schema_control_plane_acl_port_condition_read(cls, _schema):
if cls._schema_control_plane_acl_port_condition_read is not None:
_schema.port_match_type = cls._schema_control_plane_acl_port_condition_read.port_match_type
_schema.ports = cls._schema_control_plane_acl_port_condition_read.ports
return

cls._schema_control_plane_acl_port_condition_read = _schema_control_plane_acl_port_condition_read = AAZObjectType()

control_plane_acl_port_condition_read = _schema_control_plane_acl_port_condition_read
control_plane_acl_port_condition_read.port_match_type = AAZStrType(
serialized_name="portMatchType",
)
control_plane_acl_port_condition_read.ports = AAZListType()

ports = _schema_control_plane_acl_port_condition_read.ports
ports.Element = AAZStrType()

_schema.port_match_type = cls._schema_control_plane_acl_port_condition_read.port_match_type
_schema.ports = cls._schema_control_plane_acl_port_condition_read.ports

_schema_icmp_configuration_properties_read = None

@classmethod
def _build_schema_icmp_configuration_properties_read(cls, _schema):
if cls._schema_icmp_configuration_properties_read is not None:
_schema.icmp_types = cls._schema_icmp_configuration_properties_read.icmp_types
return

cls._schema_icmp_configuration_properties_read = _schema_icmp_configuration_properties_read = AAZObjectType()

icmp_configuration_properties_read = _schema_icmp_configuration_properties_read
icmp_configuration_properties_read.icmp_types = AAZListType(
serialized_name="icmpTypes",
)

icmp_types = _schema_icmp_configuration_properties_read.icmp_types
icmp_types.Element = AAZStrType()

_schema.icmp_types = cls._schema_icmp_configuration_properties_read.icmp_types


__all__ = ["Show"]
Loading
Loading