12-20-2021 09:06 AM
Let me ask you, whether the writing APIC Rest Python Adapter (ARYA) in Python 3 was planned? If I'm not mistaken we have this amazing tool in Python 2 at the moment. As a consequence, there is another important question - how long will Python2.7 on APIC be supported?
09-01-2022 01:27 AM
Hello Yevhenii,
Python 3 supports indeed ARYA. Here is an output of my Windows shell:
01-17-2024 07:09 AM
Dear All ,
Can anyone help to understand problem to convert ACI Tenant configuration file to python format using arya .
For your information , I have install cobra and install pip under arya folder and trying to covert Tenanat configuration to python formation using arya.py . But I am not finding any script after converting json file to python format . it is blank file .
ACI-Automation) PS C:\Python\ACI-Automation> pip freeze
acicobra @ file:///C:/Python/ACI-Automation/cobra/acicobra-4.2_3h-py2.py3-none-any.whl#sha256=13b70feb6c1507bb3a1852b5f49d46913a380c539bc740526e5ec3f8aff0f1a1
acimodel @ file:///C:/Python/ACI-Automation/cobra/acimodel-4.2_3h-py2.py3-none-any.whl#sha256=269c9c3cb01e6bb0a27a3079f8eb690a1c0cdf28829ae6de4fdb45781811b9de
-e git+https://github.com/datacenter/acitoolkit.git@629b84887dd0f0183b81efc8adb16817f985541a#egg=acitoolkit
arya==1.1.5
I am sharing the command which I have used from VS Code editor .
************************************************************************************************************************
{
"totalCount": "1",
"imdata": [
{
"fvTenant": {
"attributes": {
"annotation": "",
"descr": "",
"dn": "uni/tn-AMS-ACI-Tenant",
"name": "AMS-ACI-Tenant",
"nameAlias": "",
"ownerKey": "",
"ownerTag": "",
"userdom": ":all:"
},
"children": [
{
"vnsSvcCont": {
"attributes": {
"annotation": "",
"userdom": "all"
}
}
},
{
"fvRsTenantMonPol": {
"attributes": {
"annotation": "",
"tnMonEPGPolName": "",
"userdom": "all"
}
}
},
{
"fvEpTags": {
"attributes": {
"annotation": "",
"userdom": "all"
}
}
}
]
}
}
]
}
*************************************************************************************************************************
(ACI-Automation) PS C:\Python\ACI-Automation\arya\arya> .\arya.py -f tn-AMS-ACI-Tenant.json -i 131.226.217.153 -u admin -p !v3G@!4@Y > TEST.py
But this TEST.py is empty and not getting actual reason of this empty file . Can anyone help to under stand the problem .
Is there any issue on arya version with acicobra and acimodel version .
It would be highly appreciated if you reply soon .
with regards
Erfan
01-17-2024 12:19 PM
Hi @eahmed.ext ,
Even if someone answers your question, you'll NEVER be able to mark it as answered, because this question belongs to @Yevhenii_metal . So if you want to ask a question, start a new thread.
RedNectar's Forum Tips:
BTW - @Yevhenii_metal - If your question has been answered, it is a great idea to mark the question as being answered. This helps:
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide