Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Network Manager] Init network manager extension #3946

Merged
merged 30 commits into from
Oct 15, 2021
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
da51267
start to add tests for network manager
kairu-ms Jul 21, 2021
6e1b8c8
add tests
kairu-ms Jul 21, 2021
931c291
update location definition
kairu-ms Jul 22, 2021
ce2f081
update location definition
kairu-ms Jul 22, 2021
3efe513
add nm basic crud test
00Kai0 Aug 25, 2021
677856d
regen vendor sdk
00Kai0 Aug 30, 2021
4bde178
add test for group, adminconfig, userconfig
00Kai0 Aug 30, 2021
fdfaafe
complete command set
00Kai0 Sep 3, 2021
9b83993
regen sdk
00Kai0 Sep 6, 2021
49e9b2b
sort client_factory
00Kai0 Sep 22, 2021
18b2563
remove unused command and fix testcase
00Kai0 Sep 23, 2021
96af50b
fix datetime string in systemdata
00Kai0 Sep 29, 2021
f3d34bc
test plan
00Kai0 Sep 29, 2021
cdeca48
test admin-rule
00Kai0 Oct 8, 2021
0b94a11
test user rule collection
00Kai0 Oct 8, 2021
669a93a
test user rule
00Kai0 Oct 8, 2021
3889e39
test connection configuration
00Kai0 Oct 9, 2021
323f4f0
test other list options
00Kai0 Oct 11, 2021
2b517d1
fix
00Kai0 Oct 11, 2021
3e2701c
fix
00Kai0 Oct 11, 2021
e1935e8
fix
00Kai0 Oct 11, 2021
c4e067d
Merge remote-tracking branch 'origin/main' into feature-network-manag…
00Kai0 Oct 11, 2021
f580a67
fix
00Kai0 Oct 11, 2021
58ae053
fix
00Kai0 Oct 12, 2021
ed48b4b
enable test for effect-vent list-by-network-manager
00Kai0 Oct 13, 2021
e853d8f
change operation names
00Kai0 Oct 14, 2021
bafd7b2
fix
00Kai0 Oct 14, 2021
0a65053
fix
00Kai0 Oct 14, 2021
bc97df3
Merge remote-tracking branch 'origin/main' into feature-network-manag…
00Kai0 Oct 14, 2021
1e041b9
fix
00Kai0 Oct 14, 2021
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
Prev Previous commit
Next Next commit
sort client_factory
00Kai0 committed Sep 22, 2021
commit 49e9b2b7ced86bcb2005381f746fd94c8579d6dd
63 changes: 30 additions & 33 deletions src/network-manager/azext_network_manager/_client_factory.py
Original file line number Diff line number Diff line change
@@ -15,52 +15,56 @@ def cf_network_cl(cli_ctx, *_):
return get_mgmt_service_client(cli_ctx, NetworkManagementClient)


def cf_networkmanager(cli_ctx, *_):
return cf_network_cl(cli_ctx).network_managers
def cf_activeconnectivityconfiguration(cli_ctx, *_):
return cf_network_cl(cli_ctx).active_connectivity_configurations


def cf_networkmanagercommit(cli_ctx, *_):
return cf_network_cl(cli_ctx).network_manager_commits
def cf_activesecurityadminrule(cli_ctx, *_):
return cf_network_cl(cli_ctx).active_security_admin_rules


def cf_networkmanagerdeploymentstatus(cli_ctx, *_):
return cf_network_cl(cli_ctx).network_manager_deployment_status
def cf_activesecurityuserrule(cli_ctx, *_):
return cf_network_cl(cli_ctx).active_security_user_rules


def cf_effectivevirtualnetwork(cli_ctx, *_):
return cf_network_cl(cli_ctx).effective_virtual_networks
def cf_adminrulecollection(cli_ctx, *_):
return cf_network_cl(cli_ctx).admin_rule_collections


def cf_activeconnectivityconfiguration(cli_ctx, *_):
return cf_network_cl(cli_ctx).active_connectivity_configurations
def cf_adminrule(cli_ctx, *_):
return cf_network_cl(cli_ctx).admin_rules


def cf_connectivityconfiguration(cli_ctx, *_):
return cf_network_cl(cli_ctx).connectivity_configurations


def cf_effectiveconnectivityconfiguration(cli_ctx, *_):
return cf_network_cl(cli_ctx).effective_connectivity_configurations


def cf_effectivesecurityadminrule(cli_ctx, *_):
return cf_network_cl(cli_ctx).network_manager_effective_security_admin_rules
def cf_effectivevirtualnetwork(cli_ctx, *_):
return cf_network_cl(cli_ctx).effective_virtual_networks


def cf_activesecurityadminrule(cli_ctx, *_):
return cf_network_cl(cli_ctx).active_security_admin_rules
def cf_networkgroup(cli_ctx, *_):
return cf_network_cl(cli_ctx).network_groups


def cf_activesecurityuserrule(cli_ctx, *_):
return cf_network_cl(cli_ctx).active_security_user_rules
def cf_networkmanagercommit(cli_ctx, *_):
return cf_network_cl(cli_ctx).network_manager_commits


def cf_connectivityconfiguration(cli_ctx, *_):
return cf_network_cl(cli_ctx).connectivity_configurations
def cf_networkmanagerdeploymentstatus(cli_ctx, *_):
return cf_network_cl(cli_ctx).network_manager_deployment_status


def cf_effectiveconfiguration(cli_ctx, *_):
return cf_network_cl(cli_ctx).effective_configurations
def cf_effectivesecurityadminrule(cli_ctx, *_):
return cf_network_cl(cli_ctx).network_manager_effective_security_admin_rules


def cf_networkgroup(cli_ctx, *_):
return cf_network_cl(cli_ctx).network_groups
def cf_networkmanager(cli_ctx, *_):
return cf_network_cl(cli_ctx).network_managers


def cf_securityperimeter(cli_ctx, *_):
@@ -71,24 +75,17 @@ def cf_perimeterassociableresourcetype(cli_ctx, *_):
return cf_network_cl(cli_ctx).perimeter_associable_resource_types


def cf_securityuserconfiguration(cli_ctx, *_):
return cf_network_cl(cli_ctx).security_user_configurations


def cf_securityadminconfiguration(cli_ctx, *_):
return cf_network_cl(cli_ctx).security_admin_configurations


def cf_adminrule(cli_ctx, *_):
return cf_network_cl(cli_ctx).admin_rules
def cf_securityuserconfiguration(cli_ctx, *_):
return cf_network_cl(cli_ctx).security_user_configurations


def cf_adminrulecollection(cli_ctx, *_):
return cf_network_cl(cli_ctx).admin_rule_collections
def cf_userrulecollection(cli_ctx, *_):
return cf_network_cl(cli_ctx).user_rule_collections


def cf_userrule(cli_ctx, *_):
return cf_network_cl(cli_ctx).user_rules

def cf_userrulecollection(cli_ctx, *_):
return cf_network_cl(cli_ctx).user_rule_collections
Original file line number Diff line number Diff line change
@@ -136,6 +136,9 @@ def test_network_manager_security_admin_config_crud(self, resource_group):
# self.cmd('network manager commit post --network-manager-name {manager_name} --commit-type "SecurityAdmin" --target-locations "eastus2" -g {rg} '
# '--configuration-ids {sub}/resourceGroups/{rg}/providers/Microsoft.Network/networkManagers/{manager_name}/securityAdminConfigurations/{name}')

# test nm uncommit
# self.cmd('network manager commit post --network-manager-name {manager_name} --commit-type "SecurityAdmin" --target-locations "eastus2" -g {rg} ')

self.cmd('network manager security-admin-config delete --configuration-name {name} --network-manager-name {manager_name} -g {rg} --yes')