Skip to content

Commit

Permalink
change doc source for ipv4 mpls vpn
Browse files Browse the repository at this point in the history
Signed-off-by: Peng Xiao <xiaoquwl@gmail.com>
  • Loading branch information
xiaopeng163 committed Jan 20, 2016
1 parent 0438104 commit 7d44fcc
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 8 deletions.
8 changes: 1 addition & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Features

- BGP capabilities support: 4 Bytes ASN, Route Refresh(Cisco Route Refresh), Add Path send/receive;

- Address family support: IPv4 unicast, IPv4 Flowspec(limited),IPv6 unicast;
- Address family support: IPv4 unicast, IPv4 Flowspec(limited),IPv6 unicast, IPv4 MPLSVPN;

- Decode all BGP messages to json format and write files to
disk(configurable);
Expand Down Expand Up @@ -88,12 +88,6 @@ Support

Send email to xiaoquwl@gmail.com, or use GitHub issue system.

TODO
~~~~

- support more address family (VPNv4, VPNv6, etc.)
- more unittest
- others

Contribute
~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Features

- BGP capabilities support: 4 Bytes ASN, Route Refresh(Cisco Route Refresh), Add Path send/receive;

- Address family support: IPv4 unicast, IPv6 unicast, IPv4 Flowspec(limited);
- Address family support: IPv4 unicast, IPv6 unicast, IPv4 Flowspec(limited), IPv4 VPNv4;

- Decode all BGP messages to human readable strings and write files to
disk(configurable);
Expand Down
37 changes: 37 additions & 0 deletions doc/source/msg_format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -350,11 +350,31 @@ In addition to IPv4 Unicast, Now we support IPv6 Unicast and IPv4 Flowspec, here
========= ===
Value Meaning
========= ===
[1, 128] IPv4 MPLSVPN
[1, 133] IPv4 Flowspec
[2, 1] IPv6 Unicast
... ...
========= ===

IPv4 MPLSVPN
""""""""""""

.. code-block:: json
{
"attr":{
"14": {
"afi_safi": [1, 128],
"nexthop": {"rd": "0:0", "str": "2.2.2.2"},
"nlri": [
{
"label": [25],
"rd": "100:100",
"rd_type": 0,
"str": "11.11.11.11/32"}]}
}
}
IPv4 FlowSpec
"""""""""""""

Expand Down Expand Up @@ -395,6 +415,23 @@ MP_UNREACH_NLRI
The difference between ``MP_REACH_NLRI`` and ``MP_UNREACH_NLRI`` is that ``MP_UNREACH_NLRI`` only has two keys,
``afi_safi`` and ``withdraw``, and there structure is the same.

IPv4 MPLSVPN
""""""""""""

.. code-block:: json
{
"attr":{
"15": {
"afi_safi": [1, 128],
"withdraw": [
{
"rd": "100:100",
"rd_type": 0,
"str": "11.11.11.11/32"}]}
}
}
IPv4 FlowSpec
"""""""""""""

Expand Down
1 change: 1 addition & 0 deletions etc/yabgp/yabgp.ini.sample
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +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
# afi_safi = ipv4

# role tag
Expand Down

0 comments on commit 7d44fcc

Please sign in to comment.