Querying VRRP Information
DME
YANG
Copy
GET http://<IP_Address>/api/mo/sys/vrrp/inst.json?rsp-subtree=full
{ "totalCount": "1", "imdata": [ { "vrrpInst": { "attributes": { "adminSt": "enabled", "childAction": "", "ctrl": "", "dn": "sys/vrrp/inst", "modTs": "2017-12-23T13:55:06.368+00:00", "monPolDn": "", "name": "", "operErr": "", "persistentOnReload": "true", "status": "", "uid": "0" }, "children": [ { "vrrpInterface": { "attributes": { "adminSt": "enabled", "childAction": "", "descr": "", "id": "eth1/7", "isCreate": "1", "modTs": "2017-12-23T13:55:09.473+00:00", "monPolDn": "", "name": "", "persistentOnReload": "true", "rn": "if-[eth1/7]", "status": "", "uid": "0" }, "children": [ { "vrrpId": { "attributes": { "adminSt": "disabled", "advIntvl": "1", "authText": "", "authType": "none", "bfdPeerAddr": "0.0.0.0", "bfdSessionSt": "disabled", "childAction": "", "fwdLwrThrld": "1", "fwdUprThrld": "100", "groupSt": "init", "groupStQual": "up", "id": "123", "mac": "00:00:00:00:00:00", "masterAddr": "0.0.0.0", "modTs": "2017-12-23T13:55:09.490+00:00", "persistentOnReload": "true", "preempt": "enabled", "priCfg": "100", "primary": "123.1.2.3", "rn": "id-123", "status": "", "uid": "0", "vrrpCfgFailedBmp": "", "vrrpCfgFailedTs": "00:00:00:00.000", "vrrpCfgState": "0" }}}]}}]}}]}
Copy
GET http://<IP_Address>/restconf/data/Cisco-NX-OS-device:System/vrrp-items
Response
<vrrp-items> <adminSt>enabled</adminSt> <inst-items> <adminSt>enabled</adminSt> <if-items> <Interface-list> <id>eth1/7</id> <adminSt>enabled</adminSt> <id-items> <Id-list> <id>123</id> <adminSt>disabled</adminSt> <advIntvl>1</advIntvl> <authType>none</authType> <bfdSessionSt>disabled</bfdSessionSt> <fwdLwrThrld>1</fwdLwrThrld> <fwdUprThrld>0</fwdUprThrld> <groupSt>init</groupSt> <groupStQual>admin-down</groupStQual> <mac>00:00:5E:00:01:7B</mac> <masterAddr>0.0.0.0</masterAddr> <preempt>enabled</preempt> <priCfg>100</priCfg> <primary>123.1.2.3</primary> </Id-list> </id-items> <isCreate>0</isCreate> </Interface-list> </if-items> <operErr/> </inst-items> <operErr/> <operSt>enabled</operSt> </vrrp-items>