Configuring GRPC tunnel destination
DME
YANG
Copy
POST http://<mgmt_IP>/api/mo/sys.json
{ "topSystem": { "children": [ { "grpctunnelInst": { "children": [ { "grpctunnelTunnelMgr": { "children": [ { "grpctunnelTunnel": { "attributes": { "cert": "server.trust.point", "certClient": "client.trust.point", "dest": "1.1.1.1", "port": "1111", "srcIf": "lo1", "targetId": "t1111", "targetType": "GNMI_GNOI", "targetVrf": "t-vrf-1001", "vrf": "vrf-0001" } } } ] } } ] } } ] } }
Response
{ imdata:[] }
Copy
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101"> <edit-config> <target> <running/> </target> <config> <System xmlns="http://cisco.com/ns/yang/cisco-nx-os-device"> <grpctunnel-items> <tunnelmgr-items> <tunnel-items> <Tunnel-list> <dest>1.1.1.1</dest> <port>1111</port> <targetId>t1111</targetId> <targetType>GNMI_GNOI</targetType> <vrf>vrf-0001</vrf> <cert>server.trust.point</cert> <certClient>client.trust.point</certClient> <srcIf>lo1</srcIf> <targetVrf>t-vrf-1001</targetVrf> </Tunnel-list> </tunnel-items> </tunnelmgr-items> </grpctunnel-items> </System>