Configuring the Interface to be a Boundary of a PIM-SM Domain
DME
YANG
Copy
POST http://<mgmt0_IP>/api/mo/sys.json
{ "topSystem": { "children": [ { "pimEntity": { "children": [ { "pimInst": { "children": [ { "pimDom": { "attributes": { "name": "default" }, "children": [ { "pimIf": { "attributes": { "borderRouter": "yes", "id": "eth1/2" } } } ] } } ] } } ] } }, { "interfaceEntity": { "children": [ { "l1PhysIf": { "attributes": { "id": "eth1/2" } } } ] } } ] } }
Response
{ imdata:[] }
Copy
Request: <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" messageid=" 101"> <edit-config> <target> <running/> </target> <config> <System xmlns="http://cisco.com/ns/yang/cisco-nx-osdevice"> <pim-items> <name/> <inst-items> <dom-items> <Dom-list> <name>default</name> <if-items> <If-list> <id>eth1/20</id> <borderRouter>true</borderRouter> </If-list> </if-items> </Dom-list> </dom-items> </inst-items> </pim-items> </System> </config> </edit-config> </rpc> Response: <rpc-reply message-id="urn:uuid:ad8d599f-d406-43d5- bf95-622b380fa87e" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <ok/> </rpc-reply>