Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
6ef62f6
updated __init__.py for new cluster function. Added new _cluster.py f…
adamwilkins-hpe May 7, 2025
75fa1e7
updated docstring for 'get_cluster_state' function and added 'get_clu…
adamwilkins-hpe May 8, 2025
083b95a
added get_cluster_alarm_count to main __init__.py
adamwilkins-hpe May 8, 2025
1ee703a
added rest of the cluster functions - not tested yet
adamwilkins-hpe May 8, 2025
5fea909
commented out new functions that have yet to be tested...will uncomme…
adamwilkins-hpe May 8, 2025
aab720b
testing get_all_cluster_profiles
adamwilkins-hpe May 9, 2025
20dc3d7
testing add_cluster_profiles
adamwilkins-hpe May 9, 2025
ec60d3e
testing update_cluster_profile
adamwilkins-hpe May 9, 2025
3124ca8
testing delete_cluster_profile
adamwilkins-hpe May 9, 2025
f2e4176
updated delete_cluster_profile
adamwilkins-hpe May 9, 2025
fdb65bd
still testing delete_cluster_profile
adamwilkins-hpe May 9, 2025
720c318
adding tests to tests directory for pytest testing of cluster endpoin…
adamwilkins-hpe May 9, 2025
88c25b6
added first pytest function test
adamwilkins-hpe May 9, 2025
316ce8c
tests added - more to come
adamwilkins-hpe May 27, 2025
6767544
more tests added
adamwilkins-hpe Jun 2, 2025
280c87c
working on get_all_cluster_profile_mappings
adamwilkins-hpe Jun 2, 2025
97d5014
added conftest.py so user has to enter --run-tests flag when running …
adamwilkins-hpe Jun 2, 2025
a20a2c1
completed testing for update cluster profile mappings
adamwilkins-hpe Jun 4, 2025
0a4f2f9
added more tests for cluster
adamwilkins-hpe Jun 5, 2025
c384047
Merge pull request #30 from aruba/dev/cluster_endpoint
adamwilkins-hpe Jun 5, 2025
f1895dd
updated ApplianceInfo.py and created utils.py file as static helper f…
adamwilkins-hpe Jul 8, 2025
d65e8f9
Added TODO statement to main.py and changed preconfig name when uploa…
adamwilkins-hpe Jul 8, 2025
1cfa882
commit
adamwilkins-hpe Aug 21, 2025
ca1206f
Add support for conditional preconfig upload and validation
adamwilkins-hpe Sep 5, 2025
06fab39
Fix delete operation to expect HTTP 200 instead of 204 in _applia…
adamwilkins-hpe Sep 15, 2025
15013da
Merge branch 'issue/resolve_delete_appliance_return_code' into develo…
adamwilkins-hpe Sep 15, 2025
afa4420
Update expected_status to include 200 for delete operations
adamwilkins-hpe Sep 16, 2025
222188b
Merge branch 'issue/resolve_multiple_delete_options_return_code' into…
adamwilkins-hpe Sep 17, 2025
f881854
Fix typo in function name 'get_loopback_interfaes'
adamwilkins-hpe Oct 7, 2025
2a156ad
Merge branch 'issue/resolve_get_loopback_interfaces_typo' into develo…
adamwilkins-hpe Oct 7, 2025
85243f9
Add `return_type` parameter to customize API response format
adamwilkins-hpe Oct 9, 2025
d0e5488
Merge branch 'feature/add_option_for_return_type_in_appliance_post_ap…
adamwilkins-hpe Oct 9, 2025
68d82ae
added new csv and template file
adamwilkins-hpe Nov 4, 2025
550831a
deleted ec_preconfig_template-original.jinja2. Renamed preconfig.csv …
adamwilkins-hpe Nov 4, 2025
e5bad58
renamed 'preconfig.py' to 'preconfig_from_csv.py'
adamwilkins-hpe Nov 4, 2025
a17821f
created new preconfig_from_excel.py. Added preconfig-advanced.xlsx. U…
adamwilkins-hpe Nov 4, 2025
5c44d87
added README.md
adamwilkins-hpe Nov 4, 2025
6ff3768
Updated preconfig-advanced.xlsx with EdgeHA information.
adamwilkins-hpe Nov 4, 2025
f855834
created python script to read from vertical alignment in Excel sheet
adamwilkins-hpe Nov 6, 2025
a392440
created python script to read from vertical alignment in Excel sheet
adamwilkins-hpe Nov 6, 2025
13736ad
completed dhcpInfo section for dhcp server configuration
adamwilkins-hpe Nov 7, 2025
e5f3ac9
Merge branch 'development' of https://github.com/aruba/pyedgeconnect …
adamwilkins-hpe Dec 17, 2025
ca46301
updated README.md in Generate Preconfig examples
adamwilkins-hpe Dec 17, 2025
35ce97c
corrected issues with excel preconfig gen
adamwilkins-hpe Dec 17, 2025
ac7fd0b
changed filenames in examples/generate_preconfig and pointed the exce…
adamwilkins-hpe Dec 17, 2025
00e732a
updated README.md in examples/generate_preconfig
adamwilkins-hpe Dec 17, 2025
ab8a5fc
cleaned up outputs in Jupyter notebook in examples/generate_preconfig
adamwilkins-hpe Dec 17, 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
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,17 @@
},
{
"cell_type": "code",
"execution_count": 1,
"id": "42bb669b-02e4-49c6-b760-c9b1da3ca40d",
"metadata": {
"ExecuteTime": {
"end_time": "2024-11-13T17:42:19.234447Z",
"start_time": "2024-11-13T17:42:18.512928Z"
}
},
"outputs": [],
"metadata": {},
"source": [
"import csv\n",
"import datetime\n",
"import os\n",
"from jinja2 import Environment, FileSystemLoader\n",
"from pyedgeconnect import Orchestrator"
]
],
"outputs": [],
"execution_count": null
},
{
"cell_type": "markdown",
Expand All @@ -46,58 +41,35 @@
},
{
"cell_type": "code",
"execution_count": 2,
"id": "f0df56f1-c99c-4363-9c7b-fe6980f789f3",
"metadata": {},
"outputs": [
{
"name": "stdin",
"output_type": "stream",
"text": [
"Please enter FQDN or IP of Orchestrator: 192.168.102.12\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"192.168.102.12\n"
]
}
],
"source": [
"orch_url = input(\"Please enter FQDN or IP of Orchestrator: \")\n",
"print(orch_url)"
]
],
"outputs": [],
"execution_count": null
},
{
"cell_type": "code",
"execution_count": 10,
"id": "08ac520a-8603-4ba3-ac4b-a71eb0f4e234",
"metadata": {},
"outputs": [
{
"name": "stdin",
"output_type": "stream",
"text": [
"Please enter Orchestrator API key: 39c7ef4fc156481fb8866a5305b815164bf841c501dd401886a6ada0b2a9280a131a1757acd947a99b61cf83c7b209a3fda964ee33334ece82fd2e0aebf7107f\n"
]
}
],
"source": [
"orch_api_key = input(\"Please enter Orchestrator API key: \")"
]
],
"outputs": [],
"execution_count": null
},
{
"cell_type": "code",
"execution_count": 11,
"id": "874682b1-b947-417e-bc6e-6a801cbf731b",
"metadata": {},
"outputs": [],
"source": [
"#orch_url = '192.168.102.12'\n",
"#orch_api_key = '39c7ef4fc156481fb8866a5305b815164bf841c501dd401886a6ada0b2a9280a131a1757acd947a99b61cf83c7b209a3fda964ee33334ece82fd2e0aebf7107f'"
]
"#orch_api_key = '<api_key>'"
],
"outputs": [],
"execution_count": null
},
{
"cell_type": "markdown",
Expand All @@ -109,13 +81,13 @@
},
{
"cell_type": "code",
"execution_count": 12,
"id": "613372e0-d451-4fc9-aeec-a75e52e56c68",
"metadata": {},
"outputs": [],
"source": [
"orch = Orchestrator(orch_url, api_key=orch_api_key, verify_ssl=False)"
]
],
"outputs": [],
"execution_count": null
},
{
"cell_type": "markdown",
Expand All @@ -127,21 +99,13 @@
},
{
"cell_type": "code",
"execution_count": 13,
"id": "df17edce-0543-426d-8ab7-6480b3b58109",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Orchestrator version: 9.5\n"
]
}
],
"source": [
"print(f\"Orchestrator version: {orch.orch_version}\")\n"
]
],
"outputs": [],
"execution_count": null
},
{
"cell_type": "markdown",
Expand All @@ -155,10 +119,8 @@
},
{
"cell_type": "code",
"execution_count": 14,
"id": "c70eb2e2-7656-48a7-bd3c-6b6977d26ee9",
"metadata": {},
"outputs": [],
"source": [
"ec_template_file = 'ec_preconfig_template.jinja2'\n",
"\n",
Expand All @@ -168,7 +130,9 @@
" lstrip_blocks=True,\n",
")\n",
"ec_template = env.get_template(ec_template_file)"
]
],
"outputs": [],
"execution_count": null
},
{
"cell_type": "markdown",
Expand All @@ -180,16 +144,16 @@
},
{
"cell_type": "code",
"execution_count": 15,
"id": "52800a54-940a-4e31-94ff-e84686b3a850",
"metadata": {},
"outputs": [],
"source": [
"# Local directory for configuration outputs\n",
"output_directory = \"preconfig_outputs/\"\n",
"if not os.path.exists(output_directory):\n",
" os.makedirs(output_directory)"
]
],
"outputs": [],
"execution_count": null
},
{
"cell_type": "markdown",
Expand All @@ -201,28 +165,8 @@
},
{
"cell_type": "code",
"execution_count": 18,
"id": "2ad7ac9c-9db3-45f7-a8e3-da5af27936cd",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"[POST] /gms/appliance/preconfiguration/validate | Received HTTP 400 | Response text: Appliance region invalid: US. Valid regions are: [NewMexico, Texas]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Posted EC Preconfig EDGECONNECT1\n",
"Posted EC Preconfig EDGECONNECT2\n",
"Posted EC Preconfig EDGECONNECT3\n",
"Preconfig for WacoEC1 failed validation | error: Appliance region invalid: US. Valid regions are: [NewMexico, Texas]\n"
]
}
],
"source": [
"# Open CSV file with configuration data and iterate over each row and generate a preconfig per device (row)\n",
"upload_to_orch = True\n",
Expand Down Expand Up @@ -291,15 +235,17 @@
"\n",
" # Increment row number when iterating to next row in CSV\n",
" row_number += 1"
]
],
"outputs": [],
"execution_count": null
},
{
"cell_type": "code",
"execution_count": null,
"id": "98d976e3-a76d-4ceb-a04e-050f114849da",
"metadata": {},
"source": [],
"outputs": [],
"source": []
"execution_count": null
}
],
"metadata": {
Expand Down
Loading