Configuring the Exact Prefix Length to be Matched (Permit)
DME
YANG
Copy
POST http://<mgmt0_IP>/api/mo/sys/rpm.json
{ "rpmEntity": { "children": [ { "rtpfxRuleV4": { "attributes": { "name": "List_1" }, "children": [ { "rtpfxEntry": { "attributes": { "action": "permit", "criteria": "inexact", "fromPfxLen": "25", "mask": "2.4.6.8", "order": "1243", "pfx": "1.2.3.4/24", "toPfxLen": "25" }}}]}}]}}
Response
{ imdata:[] }
Copy
<System> <rpm-items> <pfxlistv4-items> <RuleV4-list> <name>List_1</name> <ent-items> <Entry-list> <order>1243</order> <action>permit</action> <criteria>inexact</criteria> <fromPfxLen>25</fromPfxLen> <mask>2.4.6.8</mask> <pfx>1.2.3.4/24</pfx> <toPfxLen>25</toPfxLen> </Entry-list> </ent-items> </RuleV4-list> </pfxlistv4-items> </rpm-items> </System>