Creating a NAT Inside Source List With an Interface
DME
YANG
Copy
POST http://<mgmt0_IP>/api/mo/sys/nat/inst.json
{ "natInst": { "children": [ { "natDom": { "attributes": { "name": "SampleString_123" }, "children": [ { "natIpNat": { "attributes": { "xlateType": "inside-source-dynamic" }, "children": [ { "natDynamicNat": { "attributes": { "aclName": "SampleString_123", "addRoute": "yes", "dynamic": "yes", "groupId": "267", "interface": "eth1/2", "matchInVrf": "yes", "overload": "yes" }}}]}}]}}]}}
Response
{ imdata:[] }
Copy
<System> <nat-items> <inst-items> <dom-items> <Dom-list> <name>SampleString_123</name> <xlate-items> <IpNat-list> <xlateType>inside-source-dynamic</xlateType> <list-items> <DynamicNat-list> <aclName>SampleString_123</aclName> <addRoute>true</addRoute> <dynamic>true</dynamic> <groupId>267</groupId> <interface>eth1/2</interface> <matchInVrf>true</matchInVrf> <overload>true</overload> </DynamicNat-list> </list-items> </IpNat-list> </xlate-items> </Dom-list> </dom-items> </inst-items> </nat-items> </System>