Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/interconnect/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.. :changelog:

Release History
===============

1.0.0b1
++++++
* Add preview support for interconnect group CRUD, node availability queries, and subgroup list/show operations.
62 changes: 62 additions & 0 deletions src/interconnect/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Azure CLI Interconnect Extension #
This is an extension to Azure CLI to manage Interconnect resources.

## How to use ##
Install the extension:

```
az extension add --name interconnect
```

### Manage interconnect groups ###

Create an interconnect group:

```
az interconnect-group create --resource-group rg1 --interconnect-group-name test-ig
```

Show an interconnect group:

```
az interconnect-group show --resource-group rg1 --interconnect-group-name test-ig
```

List interconnect groups (in a subscription, or scoped to a resource group):

```
az interconnect-group list
az interconnect-group list --resource-group rg1
```

Update an interconnect group:

```
az interconnect-group update --resource-group rg1 --interconnect-group-name test-ig
```

Delete an interconnect group:

```
az interconnect-group delete --resource-group rg1 --interconnect-group-name test-ig
```

Get node availability for all subgroups in an interconnect group:

```
az interconnect-group get-node-availability --resource-group rg1 --interconnect-group-name test-ig
```

### Manage subgroups ###

List subgroups in an interconnect group:

```
az interconnect-group subgroup list --resource-group rg1 --interconnect-group-name test-ig
```

Show a subgroup:

```
az interconnect-group subgroup show --resource-group rg1 --interconnect-group-name test-ig --subgroup-name subgroup0
```
42 changes: 42 additions & 0 deletions src/interconnect/azext_interconnect/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# --------------------------------------------------------------------------------------------
# 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
# --------------------------------------------------------------------------------------------

from azure.cli.core import AzCommandsLoader
from azext_interconnect._help import helps # pylint: disable=unused-import


class InterconnectCommandsLoader(AzCommandsLoader):

def __init__(self, cli_ctx=None):
from azure.cli.core.commands import CliCommandType
custom_command_type = CliCommandType(
operations_tmpl='azext_interconnect.custom#{}')
super().__init__(cli_ctx=cli_ctx,
custom_command_type=custom_command_type)

def load_command_table(self, args):
from azext_interconnect.commands import load_command_table
from azure.cli.core.aaz import load_aaz_command_table
try:
from . import aaz
except ImportError:
aaz = None
if aaz:
load_aaz_command_table(
loader=self,
aaz_pkg_name=aaz.__name__,
args=args
)
load_command_table(self, args)
return self.command_table

def load_arguments(self, command):
from azext_interconnect._params import load_arguments
load_arguments(self, command)


COMMAND_LOADER_CLS = InterconnectCommandsLoader
11 changes: 11 additions & 0 deletions src/interconnect/azext_interconnect/_help.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# --------------------------------------------------------------------------------------------
# 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: disable=line-too-long
# pylint: disable=too-many-lines

from knack.help_files import helps # pylint: disable=unused-import
13 changes: 13 additions & 0 deletions src/interconnect/azext_interconnect/_params.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# --------------------------------------------------------------------------------------------
# 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: disable=too-many-lines
# pylint: disable=too-many-statements


def load_arguments(self, _): # pylint: disable=unused-argument
pass
6 changes: 6 additions & 0 deletions src/interconnect/azext_interconnect/aaz/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# --------------------------------------------------------------------------------------------
# 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
# --------------------------------------------------------------------------------------------
10 changes: 10 additions & 0 deletions src/interconnect/azext_interconnect/aaz/latest/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# --------------------------------------------------------------------------------------------
# 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

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# --------------------------------------------------------------------------------------------
# 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_group(
"interconnect-group",
)
class __CMDGroup(AAZCommandGroup):
"""Manage Interconnect Group
"""
pass


__all__ = ["__CMDGroup"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# --------------------------------------------------------------------------------------------
# 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 .__cmd_group import *
from ._create import *
from ._delete import *
from ._get_node_availability import *
from ._list import *
from ._show import *
from ._update import *
Loading
Loading