...
Example-1: no coding
Input payload:
Code Block |
---|
{ |
...
"deviceName": "CXP-2501", |
...
"interfaceName": "TCP/1/0/24", |
...
"addresses": [ |
...
{ |
...
"address": "10.10.100.100", |
...
"prefix-length": "24" |
...
}, |
...
{ |
...
"address": "10.10.100.221", |
...
"prefix-length": "24" |
...
}, |
...
{ |
...
"address": "10.10.100.168", |
...
"prefix-length": "24" |
...
} |
...
] |
...
} |
Desired output payload:
{
"dev-name": "CXP-2501",
"interface-name": "TCP/1/0/24",
"objects": [
{
"subnet": "10.10.100.100/24"
},
{
"subnet": "10.10.100.221/24"
},
{
"subnet": "10.10.100.168/24"
}
]
}
...