Difference between revisions of "ONE/Restconf Lisp Guide"
From fd.io
< ONE
(→Lisp -> Eid Table -> Vni Table -> Local Mapping) |
(→Write) |
||
| Line 126: | Line 126: | ||
==== Lisp -> Eid Table -> Vni Table -> Local Mapping ==== | ==== Lisp -> Eid Table -> Vni Table -> Local Mapping ==== | ||
===== Write ===== | ===== Write ===== | ||
| − | To be able to write such data, the refferenced locator-set must exist | + | To be able to write such data, the refferenced locator-set must exist. |
| + | For eid's, only ipv4/ipv6/mac are currently supported,more variants will be implemented in future. | ||
<pre>PUT - http://localhost:8181/restconf/config/lisp:lisp/eid-table/vni-table/12/local-mappings/local-mapping/loc_map_1</pre> | <pre>PUT - http://localhost:8181/restconf/config/lisp:lisp/eid-table/vni-table/12/local-mappings/local-mapping/loc_map_1</pre> | ||
<pre> | <pre> | ||
Revision as of 07:41, 19 August 2016
Contents
- 1 Restconf Lisp Guide
- 1.1 Restconf Calls
- 1.1.1 Lisp
- 1.1.2 Lisp -> Map Resolver
- 1.1.3 Lisp -> Locator Set
- 1.1.4 Lisp -> Locator Set -> Locator
- 1.1.5 Lisp -> Eid Table -> Vni Table
- 1.1.6 Lisp -> Eid Table -> Vni Table -> Local Mapping
- 1.1.7 Lisp -> Eid Table -> Vni Table -> Remote Mapping
- 1.1.8 Lisp -> Eid Table -> Vni Table -> Adjacencies
- 1.1.9 Lisp -> Pitr Cfg
- 1.1 Restconf Calls
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 -> Vni Table
Write
PUT - http://localhost:8181/restconf/config/lisp:lisp/eid-table/vni-table/12
{
"vni-table":{
"virtual-network-identifier":"12",
"table-id":"10"
}
}
Read - Config
GET - http://localhost:8181/restconf/config/lisp:lisp/eid-table/vni-table/12
Read - Operational
GET - http://localhost:8181/restconf/operational/lisp:lisp-state/eid-table/vni-table/12
Delete
DELETE - http://localhost:8181/restconf/config/lisp:lisp/eid-table/vni-table/12
Lisp -> Eid Table -> Vni Table -> Local Mapping
Write
To be able to write such data, the refferenced locator-set must exist. For eid's, only ipv4/ipv6/mac are currently supported,more variants will be implemented in future.
PUT - http://localhost:8181/restconf/config/lisp:lisp/eid-table/vni-table/12/local-mappings/local-mapping/loc_map_1
{
"local-mapping":{
"id":"loc_map_1",
"eid":{
"address-type":"ietf-lisp-address-types:ipv4-afi",
"virtual-network-id":"12",
"ipv4":"192.168.2.1"
},
"locator-set":"loc_1"
}
}