Difference between revisions of "ONE/Restconf Lisp Guide"

From fd.io
< ONE
Jump to: navigation, search
(Lisp -> Locator Set -> Locator)
(Lisp -> Locator Set -> Locator)
Line 84: Line 84:
  
 
===== Read - Config =====
 
===== Read - Config =====
<pre></pre>
+
<pre>GET - http://localhost:8181/restconf/config/lisp:lisp/locator-sets/locator-set/loc_1/interface/interface/local0</pre>
  
 
===== Read - Operational =====
 
===== Read - Operational =====
<pre></pre>
+
<pre>GET - http://localhost:8181/restconf/operational/lisp:lisp-state/locator-sets/locator-set/loc_1/interface/interface/local0</pre>
  
 
===== Delete =====
 
===== Delete =====
<pre></pre>
+
<pre>DELETE - http://localhost:8181/restconf/config/lisp:lisp/locator-sets/locator-set/loc_1/interface/interface/local0</pre>
  
 
==== Lisp -> Eid Table ====
 
==== Lisp -> Eid Table ====

Revision as of 07:33, 19 August 2016

Restconf Lisp Guide

This guide is showing how to use Lisp with Honeycomb/Vpp.

Restconf Calls

Lisp

Write

This call will enable/disable Lisp feature.

PUT - http://localhost:8181/restconf/config/lisp:lisp
{
    "lisp":{
        "enable":"true"
    }    
}
Read - Config
GET - http://localhost:8181/restconf/config/lisp:lisp
Read - Operational
GET - http://localhost:8181/restconf/operational/lisp:lisp-state
Delete
DELETE- http://localhost:8181/restconf/config/lisp:lisp

Lisp -> Map Resolver

Write
PUT - http://localhost:8181/restconf/config/lisp:lisp/map-resolvers/map-resolver/192.168.2.1
{
   "map-resolver":{
       "ip-address":"192.168.2.1"
   }
}
Read - Config
GET - http://localhost:8181/restconf/config/lisp:lisp/map-resolvers/map-resolver/192.168.2.1
Read - Operational
GET - http://localhost:8181/restconf/operational/lisp:lisp-state/map-resolvers/map-resolver/192.168.2.1
Delete
DELETE - http://localhost:8181/restconf/config/lisp:lisp/map-resolvers/map-resolver/192.168.2.1

Lisp -> Locator Set

Write
PUT - http://localhost:8181/restconf/config/lisp:lisp/locator-sets/locator-set/loc_1
{
    "locator-set":{
        "name":"loc_1"
    }
}
Read - Config
GET - http://localhost:8181/restconf/config/lisp:lisp/locator-sets/locator-set/loc_1
Read - Operational
GET - http://localhost:8181/restconf/config/lisp:lisp-state/locator-sets/locator-set/loc_1
Delete
DELETE - http://localhost:8181/restconf/config/lisp:lisp/locator-sets/locator-set/loc_1

Lisp -> Locator Set -> Locator

Write
PUT - http://localhost:8181/restconf/config/lisp:lisp/locator-sets/locator-set/loc_1/interface/interface/local0
{
     "interface":{
         "interface-ref":"local0",
         "priority":"2",
         "weight":"1"
     }
}
Read - Config
GET - http://localhost:8181/restconf/config/lisp:lisp/locator-sets/locator-set/loc_1/interface/interface/local0
Read - Operational
GET - http://localhost:8181/restconf/operational/lisp:lisp-state/locator-sets/locator-set/loc_1/interface/interface/local0
Delete
DELETE - http://localhost:8181/restconf/config/lisp:lisp/locator-sets/locator-set/loc_1/interface/interface/local0

Lisp -> Eid Table

Lisp -> Eid Table -> Vni Table

Lisp -> Eid Table -> Vni Table -> Local Mapping

Lisp -> Eid Table -> Vni Table -> Remote Mapping

Lisp -> Eid Table -> Vni Table -> Adjacencies

Lisp -> Pitr Cfg