Enable the RESTCONF Server

About this task

Use the following procedure to enable the RESTCONF server.

Before you begin

Run the show application restconf conflict-ifname command to see if any conflict in interface names exist. To enable RESTCONF, the interface names (VLAN name, MLT name, and Port interface name) must be unique.

Run the show application restconf invalid-name mlt and show application restconf invalid-name vlan commands to see if any MLT or VLAN names contain special characters. To enable RESTCONF, VLAN and MLT names cannot contain special characters other than underscore (_) and en dash (-).

Procedure

  1. Enter Application Configuration mode:

    enable

    configure terminal

    application

  2. Enable the RESTCONF server:

    restconf enable

    Note

    Note

    If the interface names (VLAN, MLT, and Port) are not unique, or if VLAN or MLT names contain prohibited special characters, an error occurs indicating that you cannot enable RESTCONF. You must change the interface names before you enable RESTCONF.

Example

Switch:1>enable
Switch:1#configure terminal
Enter configuration commands, one per line. End with CTRL/Z.
Switch:1(config)#application
Switch:1(config-app)#restconf enable