cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
112
Views
0
Helpful
0
Replies
Highlighted
Beginner

Enabling restconf on a CSR1000v

Hello guys, i'm trying to enable restconf on a CSR1000v (03.16.03), but the service has not yet enabled.

 

I'm using the following docs but maybe i forgot something:

https://www.cisco.com/c/en/us/td/docs/routers/csr1000/software/restapi/restapi/RESTAPIintro.html#97727

https://www.cisco.com/c/en/us/td/docs/routers/csr1000/software/configuration/b_CSR1000v_Configuration_Guide/b_CSR1000v_Configuration_Guide_chapter_01101.html

https://www.cisco.com/c/en/us/td/docs/routers/csr1000/software/restapi/restapi/RESTAPIglobal.html

https://www.cisco.com/c/en/us/td/docs/routers/csr1000/software/configuration/b_CSR1000v_Configuration_Guide/b_CSR1000v_Configuration_Guide_chapter_01110.html

https://www.youtube.com/watch?v=uHvFZlpT6dw&feature=youtu.be&t=471

https://developer.cisco.com/docs/ios-xe/#!enabling-restconf-on-ios-xe/prerequsites

 

We installed and activated the OVA "iosxe-remote-mgmt.03.16.04a.S.155-3.S4a-ext.ova"

#show virtual-service list

Name                    Status             Package Name

------------------------------------------------------------------------------

csr_mgmt                Activated          iosxe-remote-mgmt.03.16.04a.S.155-3

 

and apply the following configuration commands:

!

netconf-yang

restconf

remote-management

  restful-api autosave 60 local-port 443 

!

interface GigabitEthernet4

ip address 10.122.68.111 255.255.254.0

!

interface VirtualPortGroup0

ip unnumbered GigabitEthernet4

!

virtual-service csr_mgmt

vnic gateway VirtualPortGroup0

  guest ip address 10.122.68.112

activate

!

ip route 10.122.68.112 255.255.255.255 VirtualPortGroup0

!

onep

service set vty

!

 

But RESTAPI Feature and Guest interfaces are not enabled:

#sh virtual-service detail

Virtual service csr_mgmt detail

  State                 : Activated

  Owner                 : IOSd

  Package information

    Name                : iosxe-remote-mgmt.03.16.04a.S.155-3.S4a-ext.ova

    Path                : bootflash:/iosxe-remote-mgmt.03.16.04a.S.155-3.S4a-ext.ova

    Application

      Name              : csr_mgmt

      Installed version : 03.16.03

      Description       : CSR-MGMT

    Signing

      Key type          : Cisco development key

      Method            : SHA-1

    Licensing

      Name              : Not Available

      Version           : Not Available

 

  Detailed guest status

    Information not available

  Activated profile name: None

  Resource reservation

    Disk                : 756 MB

    Memory              : 512 MB

    CPU                 : 5% system CPU

 

  Attached devices

    Type              Name        Alias

    ---------------------------------------------

    NIC               ieobc_1     ieobc

    NIC               dp_1_0      net2

    Disk              _rootfs

    Disk              /opt/var

    Disk              /opt/var/c

    Serial/shell                  serial0

    Serial/aux                    serial1

    Serial/Syslog                 serial2

    Serial/Trace                  serial3

    Watchdog          watchdog-2

 

  Network interfaces

    MAC address             Attached to interface

    ------------------------------------------------------

    54:0E:00:0B:0C:02       ieobc_1

    00:1E:7A:A1:19:BA       VirtualPortGroup0

 

  Guest interface

  ---

  Information not available

  ---

 

  Guest routes

  ---

  Information not available

  ---

 

  Resource admission (without profile) : passed

    Disk space    : 756MB

    Memory        : 512MB

    CPU           : 5% system CPU

    VCPUs         : Not specified

 

 

Like this:

 

#sh virtual-service detail

.

.

----------------------------------------------------------------------

Process               Status            Uptime           # of restarts

----------------------------------------------------------------------

nginx                  UP         0Y 0W 0D  0: 1: 1        0

climgr                 UP         0Y 0W 0D  0: 1: 1        0

restful_api            UP         0Y 0W 0D  0: 1: 1        0

fcgicpa                UP         0Y 0W 0D  0: 0:13        0

pnscag                 UP         0Y 0W 0D  0: 0:13        0

pnscdme                UP         0Y 0W 0D  0: 0:12        0

----------------------------------------------------------------------

Feature         Status                 Configuration

----------------------------------------------------------------------

Restful API   Enabled, UP             port: 443

              (GET only)              auto-save-timer: 8 seconds

                                      socket: unix:/usr/local/nginx/csrapi-fcgi.sock;

PNSC          Enabled, UP             host: 172.25.223.233

                                      port:  8443

                                      socket: unix:/usr/local/cpa-fcgi.sock;

.

.

  Guest interface

  ---

  Interface: eth1

  ip address: 172.25.223.147/25

  ---

  Guest routes

  ---

  Address/Mask                         Next Hop                          Intf.

-------------------------------------------------------------------------------

0.0.0.0/0                            172.25.223.137                    eth1   

 

 

Could you help me please?

 

Regards.

WE

A RESTful API can be a huge advantage when deploying and managing large scale networks. Cisco IOS XE devices include an integrated virtual-machine hosting environment, known as Service Containers, that can make adding a REST interface super simple.