EasyManua.ls Logo

Cisco Catalyst 4500 Series - Examples for RESTCONF Rpcs

Cisco Catalyst 4500 Series
2086 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6-15
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 6 Programmability
Using ODM Models
Remove the description from an interface by sending the following RPC
<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
<native xmlns="http://cisco.com/ns/yang/ned/ios">
<interface>
<TenGigabitEthernet>
<name>4/1</name>
<description xc:operation="delete"/>
</TenGigabitEthernet>
</interface>
</native>
</config>
</edit-config>
</rpc>
Examples for RESTCONF RPCs
Get the TFTP source interface by sending the following RPC:
GET http://10.106.30.33:80/restconf/api/running/native/ip/tftp/source-interface
Configure the TFTP source interface by sending the following RPC:
PATCH
http://10.106.30.33:80/restconf/api/running/native/ip/tftp/source-interface/GigabitEth
ernet
payload = "{\n \"GigabitEthernet\": \"2/2\"\n}"
Enter an HTTP delete request by sending the following RPC:
DELETE http://10.106.30.33:55080/api/running/native/ip/tftp/source-interface/
Note For the HTTP delete request do not use:
http://10.106.30.33:80/restconf/api/running/native/ip/tftp/source-interface/
Using ODM Models
You use ODM models to retrieve read-only operational state data from the system. For this, you must
enable Secure Shell Version 2 (SSHv2), activate the ODM, and set the time interval at which the models
will collect information from the system.
Each ODM model has a corresponding parser, which polls the specified operational data according to
the specified polling interval in milliseconds. See the following sections:
Enabling SSHv2, page 6-17
Activating and Deactivating the ODM, page 6-17
Enabling the Polling Mode, page 6-19
Displaying Supported Parsers and Polling Intervals, page 6-20

Table of Contents

Other manuals for Cisco Catalyst 4500 Series

Related product manuals