Hello everyone!
I am planning to create around 200 new subnets on my firewall managed by Panorama template. We plan to restructure our network.
I want to do this via the Rest API of Panorama. I was able to create a ae interface via the API, no problem. But I cannot create subinterfaces for this ae interface.
We are running Panorama 10.1.3-h1.
The following is the JSON body I send to the AggregateEthernetInterfaces enpoint restapi/v10.1/Network/AggregateEthernetInterfaces?name=ae2.155&location=template&template=MyTemplate
{ "entry" : { "@name" : "ae2.155" , "ip" : { "entry" : [ { "@name" : "10.10.155.1" } ] }, "tag" : "155" } }
I am getting the following response:
{ "code" : 3 , "message" : "Invalid Object" , "details" : [ { "@type" : "CauseInfo" , "causes" : [ { "code" : 12 , "module" : "panui_mgmt" , "description" : "Invalid Object: ae2.155 'ae2.155' is not a valid reference." } ] } ] }
I thought, maybe I am using the wrong API endpoint, so I also tested with the EthernetInterfaces endpoint /restapi/v10.1/Network/EthernetInterfaces?name=ae2.155&location=template&template=MyTemplate with the following JSON body:
{ "entry" : { "@name" : "ae2.155" , "ip" : { "entry" : [ { "@name" : "10.10.12.12" } ] }, "tag" : "155" } }
But even with this endpoint I am getting an error:
{ "code" : 9 , "message" : "Parent Interface Not Found: Parent interface ae2 does not exist." , "details" : [ { "@type" : "CauseInfo" , "causes" : [ { "code" : 200 , "module" : "panui_restapi" , "description" : "Parent Interface Not Found: Parent interface ae2 does not exist." } ] } ] }
But the parent interface ae2 exists, I created it via API...
So my question is: How can I add a subinterface to an aggregate ethernet interface via API?
Thanks in advance,
Martin
... View more