Skip to content

Commit

Permalink
ipv6 mpls vpn doc and config options
Browse files Browse the repository at this point in the history
Signed-off-by: Peng Xiao <xiaoquwl@gmail.com>
  • Loading branch information
xiaopeng163 committed Feb 1, 2016
1 parent 7c418a9 commit a586dd8
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 10 deletions.
6 changes: 2 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,11 @@ Features

- Address family support:

- IPv4 unicast
- IPv4/IPv6 unicast

- IPv4 Flowspec(limited)

- IPv6 unicast

- IPv4 MPLSVPN
- IPv4/IPv6 MPLSVPN

- EVPN (partially supported)

Expand Down
6 changes: 2 additions & 4 deletions doc/source/feature.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ Features

- Address family support:

- IPv4 unicast
- IPv4/IPv6 unicast

- IPv4 Flowspec(limited)

- IPv6 unicast

- IPv4 MPLSVPN
- IPv4/IPv6 MPLSVPN

- EVPN (partially supported)

Expand Down
52 changes: 51 additions & 1 deletion doc/source/msg_format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -396,17 +396,45 @@ For IPv6 Unicast, it has three or four keys:
.. code-block:: json
{
"attr":
"attr":{
"14": {
"afi_safi": [2, 1],
"linklocal_nexthop": "fe80::c002:bff:fe7e:0",
"nexthop": "2001:db8::2",
"nlri": ["::2001:db8:2:2/64", "::2001:db8:2:1/64", "::2001:db8:2:0/64"]}
}
}
The value of the Length of Next Hop Network Address field on a ``MP_REACH_NLRI`` attribute shall be set to 16,
when only a global address is present, or 32 if a link-local address is also included in the Next Hop field.

IPv6 MPLSVPN
"""""""""""""

.. code-block:: json
{
"attr":{
"14": {
"afi_safi": [2, 128],
"nexthop": {"rd": "100:12", "str": "::ffff:172.16.4.12"},
"nlri": [
{
"label": [54],
"rd": "100:12",
"prefix": "2010:0:12:4::/64"},
{
"label": [55],
"rd": "100:12",
"prefix": "2010:1:12::/64"
}
]
},
"16": [[2, "100:12"]]
}
}
MP_UNREACH_NLRI
^^^^^^^^^^^^^^^

Expand Down Expand Up @@ -455,6 +483,28 @@ IPv6 Unicast
"withdraw": ["::2001:db8:2:2/64", "::2001:db8:2:1/64", "::2001:db8:2:0/64"]}
}
IPv6 MPLSVPN
""""""""""""

.. code-block:: json
{
"attr":{
"15": {
"afi_safi": [2, 128],
"withdraw": [
{
"label": [54],
"rd": "100:12",
"prefix": "2010:0:12:4::/64"},
{
"label": [55],
"rd": "100:12",
"prefix": "2010:1:12::/64"
}
]}
}}
Notification Message
--------------------

Expand Down
2 changes: 1 addition & 1 deletion etc/yabgp/yabgp.ini.sample
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

# The Global config for address family and sub address family
# if you want to support more than one address family, you can set afi_safi = ipv4, ipv6, ....
# we support: ipv4, ipv6, flowspec, vpnv4, evpn
# we support: ipv4, ipv6, flowspec, vpnv4, evpn, vpnv6
# afi_safi = ipv4

# role tag
Expand Down
64 changes: 64 additions & 0 deletions tools/Yabgp.json.postman_collection
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@
],
"owner": "29527"
},
{
"id": "ac4676df-0b9b-90e9-4954-105af1418940",
"name": "ipv6_mpls_vpn",
"description": "",
"order": [
"f6f4c195-9e5b-27f2-d328-70967e8b7b1c",
"0176151f-d9bd-17d8-7eb2-2f10e1520160"
],
"owner": "29527"
},
{
"id": "1b512739-7802-27a6-8e58-44b8fe39e565",
"name": "ipv6_unicast",
Expand All @@ -104,6 +114,32 @@
"remoteLink": null,
"public": false,
"requests": [
{
"id": "0176151f-d9bd-17d8-7eb2-2f10e1520160",
"headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
"url": "http://10.75.44.11:8888/v1/peer/10.75.44.228/send/update",
"preRequestScript": "",
"pathVariables": {},
"method": "POST",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "basicAuth",
"helperAttributes": {
"username": "admin",
"password": "admin",
"saveToRequest": true,
"id": "basic",
"timestamp": 1441674669014
},
"time": 1454314938694,
"name": "Send withdraw ipv6 mpls vpn",
"description": "",
"collectionId": "2331b642-660a-c670-0032-f81410a58926",
"responses": [],
"rawModeData": "{\n \"attr\":{\n \"15\": {\n \"afi_safi\": [2, 128],\n \"withdraw\": [\n {\n \"label\": [54],\n \"rd\": \"100:12\",\n \"prefix\": \"2010:0:12:4::/64\"},\n {\n \"label\": [55],\n \"rd\": \"100:12\",\n \"prefix\": \"2010:1:12::/64\"\n }\n ]}\n}}"
},
{
"id": "0a02e0cf-35b2-fc55-b94b-65a5fde07236",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\n",
Expand Down Expand Up @@ -645,6 +681,34 @@
"responses": [],
"rawModeData": "{\n \"attr\":{\n \"15\": {\n \"afi_safi\": [25, 70],\n \"withdraw\": [\n {\n \"type\": 2,\n \"value\": {\n \"eth_tag_id\": 108,\n \"ip\": \"11.11.11.1\",\n \"label\": [0],\n \"rd\": \"172.17.0.3:2\",\n \"mac\": \"00-11-22-33-44-55\",\n \"esi\": 0}}]\n }\n }\n}"
},
{
"id": "f6f4c195-9e5b-27f2-d328-70967e8b7b1c",
"headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n",
"url": "http://10.75.44.11:8888/v1/peer/10.75.44.228/send/update",
"pathVariables": {},
"preRequestScript": "",
"method": "POST",
"collectionId": "2331b642-660a-c670-0032-f81410a58926",
"data": [],
"dataMode": "raw",
"name": "Send update ipv6 mpls vpn",
"description": "",
"descriptionFormat": "html",
"time": 1454314878098,
"version": 2,
"responses": [],
"tests": "",
"currentHelper": "basicAuth",
"helperAttributes": {
"username": "admin",
"password": "admin",
"saveToRequest": true,
"id": "basic",
"timestamp": 1441674669014
},
"folder": "ac4676df-0b9b-90e9-4954-105af1418940",
"rawModeData": "{\n \"attr\":{\n \"1\": 0, \n \"2\": [], \n \"5\": 100, \n \"14\": {\n \"afi_safi\": [2, 128],\n \"nexthop\": {\"rd\": \"100:12\", \"str\": \"::ffff:172.16.4.12\"},\n \"nlri\": [\n {\n \"label\": [54],\n \"rd\": \"100:12\",\n \"prefix\": \"2010:0:12:4::/64\"},\n {\n \"label\": [55],\n \"rd\": \"100:12\",\n \"prefix\": \"2010:1:12::/64\"\n }\n ]},\n \"16\": [[2, \"100:12\"]]\n}}"
},
{
"id": "fd1df45b-26bc-5002-f784-88bae0047f55",
"headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
Expand Down

0 comments on commit a586dd8

Please sign in to comment.