Skip to content
This repository was archived by the owner on Aug 12, 2020. It is now read-only.

Commit ff2a606

Browse files
committed
write simple documentation
1 parent e908970 commit ff2a606

File tree

8 files changed

+898
-3
lines changed

8 files changed

+898
-3
lines changed

README.rst

-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ TODO
122122

123123
- support more address family (IPv6, VPNv4, VPNv6, etc.)
124124
- support RESTful API, send message/control peer state, etc.
125-
- documentation
126125
- unittest
127126
- others
128127

doc/README.md

Whitespace-only changes.

doc/source/index.rst

+33-1
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,49 @@ of routers (include real Cisco/HuaWei/Juniper routers and some router
1212
simulators in Cisco like IOL/IOU) and receive/parse BGP messages for
1313
future analysis. Now we open sourced it.
1414

15-
We write it in strict accordance with the specifications of RFCs.
15+
We write it accordance with the specifications of RFCs.
1616

1717
This software can be used on Linux/Unix, Mac OS and Windows systems.
1818

19+
Features
20+
========
21+
22+
- It can establish BGP session based on IPv4 address (TCP Layer) in
23+
active mode(as TCP client);
24+
25+
- Support TCP MD5 authentication(IPv4 and does not support Windows
26+
now);
27+
28+
- BGP capabilities support: 4 Bytes ASN, IPv4 address family, Route
29+
Refresh(Cisco Route Refresh);
30+
31+
- Decode all BGP messages to human readable strings and write files to
32+
disk(configurable);
33+
34+
.. note::
35+
36+
yabgp is a light weight BGP agent used for connecting network devices. It only can be
37+
TCP client in one BGP peering connection, and we recommend that each yabgp process connect
38+
only one BGP neighbor, so each process is independent with each other, we can start many yabgp
39+
processes within the same machine or in different machines.
1940

2041
Quickstarts
2142
===========
2243

2344
.. toctree::
2445
:maxdepth: 1
2546

47+
install
48+
tutorial
49+
msg_format
50+
reference
51+
52+
Support
53+
=======
54+
55+
Please use GitHub issue system or submit pull request.
56+
57+
2658
Indices and tables
2759
==================
2860

doc/source/install.rst

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Installation
2+
============
3+
4+
We recommend run ``yabgp`` through python virtual-env from source
5+
code or pip install
6+
7+
Use yabgp from source code:
8+
9+
.. code:: bash
10+
11+
$ virtualenv yabgp-virl
12+
$ source yabgp-virl/bin/activate
13+
$ git clone https://github.com/yabgp/yabgp
14+
$ cd yabgp
15+
$ pip install -r requirements.txt
16+
$ cd bin
17+
$ python yabgpd -h
18+
19+
Use pip install
20+
21+
.. code:: bash
22+
23+
$ virtualenv yabgp-virl
24+
$ source yabgp-virl/bin/activate
25+
$ pip install yabgp
26+
$ which yabgpd
27+
/home/bgpmon/yabgp-virl/bin/yabgpd
28+
$ yabgpd -h
29+
30+
.. note::
31+
32+
For ``virtualenv``, you can install it from pip. And make sure you have installed ``python-dev`` based on
33+
your operation system, for example Ubuntu, you can install it from ``apt-get install python-dev``.
34+
otherwise, you may get error when install requirement from requirements.txt

0 commit comments

Comments
 (0)