Skip to content

Commit

Permalink
NetworkCloud tests added for L3network
Browse files Browse the repository at this point in the history
  • Loading branch information
Priya Shet committed May 2, 2023
1 parent a719103 commit a431e22
Show file tree
Hide file tree
Showing 203 changed files with 48,839 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@

/src/netappfiles-preview/ @b-lefr

/src/networkcloud/ @kiall @mbashtovaya @priyamshet

/src/network-manager/ @necusjz @kairu-ms @jsntcy

/src/healthcareapis/ @fengzhou-msft @iviark
Expand Down
69 changes: 69 additions & 0 deletions linter_exclusions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1980,6 +1980,75 @@ network vwan update:
security_provider_name:
rule_exclusions:
- option_length_too_long
networkcloud cloudservicesnetwork create:
parameters:
enable_default_egress_endpoints:
rule_exclusions:
- no_parameter_defaults_for_update_commands
- option_length_too_long
additional_egress_endpoints:
rule_exclusions:
- option_length_too_long
networkcloud cloudservicesnetwork update:
parameters:
enable_default_egress_endpoints:
rule_exclusions:
- no_parameter_defaults_for_update_commands
- option_length_too_long
additional_egress_endpoints:
rule_exclusions:
- option_length_too_long
networkcloud cluster create:
parameters:
aggregator_or_single_rack_definition:
rule_exclusions:
- option_length_too_long
cluster_service_principal:
rule_exclusions:
- option_length_too_long
compute_deployment_threshold:
rule_exclusions:
- option_length_too_long
compute_rack_definitions:
rule_exclusions:
- option_length_too_long
managed_resource_group_configuration:
rule_exclusions:
- option_length_too_long
networkcloud cluster update:
parameters:
aggregator_or_single_rack_definition:
rule_exclusions:
- option_length_too_long
cluster_service_principal:
rule_exclusions:
- option_length_too_long
compute_deployment_threshold:
rule_exclusions:
- option_length_too_long
compute_rack_definitions:
rule_exclusions:
- option_length_too_long
networkcloud cluster deploy:
parameters:
skip_validations_for_machines:
rule_exclusions:
- option_length_too_long
networkcloud clustermanager create:
parameters:
managed_resource_group_configuration:
rule_exclusions:
- option_length_too_long
networkcloud l3network create:
parameters:
hybrid_aks_ipam_enabled:
rule_exclusions:
- option_length_too_long
networkcloud virtualmachine create:
parameters:
isolate_emulator_thread:
rule_exclusions:
- option_length_too_long
notification-hub authorization-rule create:
parameters:
notification_hub_name:
Expand Down
9 changes: 9 additions & 0 deletions src/networkcloud/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. :changelog:
Release History
===============

0.3.0
++++++
* Initial release. This version supports NetworkCloud 2022-12-12-preview APIs.
* This version is experimental. Changes to the interface are expected but will be done in backward compatible way where possible.
5 changes: 5 additions & 0 deletions src/networkcloud/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Azure CLI Networkcloud Extension #
This is an extension to Azure CLI to manage Networkcloud resources.

## How to use ##
Please add commands usage here.
42 changes: 42 additions & 0 deletions src/networkcloud/azext_networkcloud/__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_networkcloud._help import helps # pylint: disable=unused-import


class NetworkcloudCommandsLoader(AzCommandsLoader):

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

def load_command_table(self, args):
from azext_networkcloud.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_networkcloud._params import load_arguments
load_arguments(self, command)


COMMAND_LOADER_CLS = NetworkcloudCommandsLoader
11 changes: 11 additions & 0 deletions src/networkcloud/azext_networkcloud/_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/networkcloud/azext_networkcloud/_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/networkcloud/azext_networkcloud/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
# --------------------------------------------------------------------------------------------
6 changes: 6 additions & 0 deletions src/networkcloud/azext_networkcloud/aaz/latest/__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
# --------------------------------------------------------------------------------------------
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# --------------------------------------------------------------------------------------------
# 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(
"networkcloud",
is_experimental=True,
)
class __CMDGroup(AAZCommandGroup):
"""Manage Network Cloud resources
"""
pass


__all__ = ["__CMDGroup"]
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: skip-file
# flake8: noqa

from .__cmd_group import *
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# --------------------------------------------------------------------------------------------
# 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(
"networkcloud baremetalmachine",
is_experimental=True,
)
class __CMDGroup(AAZCommandGroup):
"""Manage bare metal machine
"""
pass


__all__ = ["__CMDGroup"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# --------------------------------------------------------------------------------------------
# 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 ._cordon import *
from ._list import *
from ._power_off import *
from ._reimage import *
from ._replace import *
from ._restart import *
from ._run_command import *
from ._run_data_extract import *
from ._run_read_command import *
from ._show import *
from ._start import *
from ._uncordon import *
from ._update import *
from ._validate_hardware import *
from ._wait import *
Loading

0 comments on commit a431e22

Please sign in to comment.