Hi folks,
My team has just started kicking the tires on the AOS8 API. In this instance, consider the following hierarchy:
(lab) [mynode] #show configuration node-hierarchy
Default-node is not configured. Autopark is disabled.
Configuration node hierarchy
----------------------------
Config Node Type Name
----------- ---- ----
/ System
/md System
/mm System
/mm/mynode System
When we deploy a new site, we create a parent folder (i.e., /md/test/) that contains configuration that will be shared across all cluster members. For this scenario, I'm just starting with the "location" configuration. I'm aware of the `/v1/configuration/object/location` endpoint, but rather than make an API call for each object, we'd like to use the `/v1/configuration/object/configuration_node_filename` after copying the flat text file to the conductor.
I can create the new node without issue using the `/v1/configuration/object/configuration_node`, but subsequent calls to the configuration_node_filename result in the following error:
{
"configuration_node_filename": {
"node-path": "/md/test",
"filename": "/flash/config/test.txt",
"_result": {
"status": 1,
"status_str": "Error: Cannot configure an existing node /md/test"
}
},
"_global_result": {
"status": 2,
"status_str": "Error: Cannot configure an existing node /md/test",
"_pending": false
}
}
So I can't add it after node is created and it doesn't seem that I can specify a filename when the /md/test/ node is created. So what gives? How is this configuration_filename operation supposed to work?