Setting the Next-Hop Address
DME
YANG
Copy
POST http://<mgmt0_IP>/api/mo/sys/rpm.json
{ "rpmEntity": { "children": [ { "rtmapRule": { "attributes": { "name": "map1" }, "children": [ { "rtmapEntry": { "attributes": { "action": "permit", "order": "10" }, "children": [ { "rtmapSetNh": { "attributes": { "addr": "1.2.3.4" }}}]}}]}}]}}
Response
{ imdata:[] }
Copy
<System> <rpm-items> <rtmap-items> <Rule-list> <name>map1</name> <ent-items> <Entry-list> <order>10</order> <action>permit</action> <nh-items> <SetNh-list> <addr>1.2.3.4</addr> </SetNh-list> </nh-items> </Entry-list> </ent-items> </Rule-list> </rtmap-items> </rpm-items> </System>