1
0
mirror of https://github.com/osrg/gobgp.git synced 2024-05-11 05:55:10 +00:00

docs: update cli output

Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
This commit is contained in:
FUJITA Tomonori
2020-03-05 14:25:30 +09:00
parent 428850253e
commit 03f864a23f

View File

@ -15,9 +15,9 @@ Make sure that all the peers are connected.
```bash ```bash
$ gobgp neighbor $ gobgp neighbor
Peer AS Up/Down State |#Advertised Received Accepted Peer AS Up/Down State |#Received Accepted
10.0.255.1 65001 00:00:04 Establ | 2 2 2 10.0.255.1 65001 00:00:04 Establ | 2 2
10.0.255.2 65002 00:00:04 Establ | 2 2 2 10.0.255.2 65002 00:00:04 Establ | 2 2
``` ```
## Adding or deleting a peer dynamically ## Adding or deleting a peer dynamically
@ -61,10 +61,10 @@ After you send `HUP` signal (`kill` command), you should see 10.0.255.3 peer.
```bash ```bash
$ gobgp neighbor $ gobgp neighbor
Peer AS Up/Down State |#Advertised Received Accepted Peer AS Up/Down State |#Received Accepted
10.0.255.1 65001 00:03:42 Establ | 3 2 2 10.0.255.1 65001 00:03:42 Establ | 2 2
10.0.255.2 65002 00:03:42 Establ | 3 2 2 10.0.255.2 65002 00:03:42 Establ | 2 2
10.0.255.3 65003 00:01:39 Establ | 4 1 1 10.0.255.3 65003 00:01:39 Establ | 1 1
``` ```
## Temporarily disable a configured peer ## Temporarily disable a configured peer
@ -76,10 +76,10 @@ peer later.
```bash ```bash
$ gobgp neighbor 10.0.255.1 disable $ gobgp neighbor 10.0.255.1 disable
$ gobgp neighbor $ gobgp neighbor
Peer AS Up/Down State |#Advertised Received Accepted Peer AS Up/Down State |#Received Accepted
10.0.255.1 65001 never Idle(Admin) | 0 0 0 10.0.255.1 65001 never Idle(Admin) | 0 0
10.0.255.2 65002 00:12:32 Establ | 1 2 2 10.0.255.2 65002 00:12:32 Establ | 2 2
10.0.255.3 65003 00:10:29 Establ | 2 1 1 10.0.255.3 65003 00:10:29 Establ | 1 1
``` ```
The state of 10.0.255.1 is `Idle(Admin)`. Let's enable the peer again. The state of 10.0.255.1 is `Idle(Admin)`. Let's enable the peer again.
@ -87,20 +87,20 @@ The state of 10.0.255.1 is `Idle(Admin)`. Let's enable the peer again.
```bash ```bash
$ gobgp neighbor 10.0.255.1 enable $ gobgp neighbor 10.0.255.1 enable
$ gobgp neighbor $ gobgp neighbor
Peer AS Up/Down State |#Advertised Received Accepted Peer AS Up/Down State |#Received Accepted
10.0.255.1 65001 never Idle | 0 0 0 10.0.255.1 65001 never Idle | 0 0
10.0.255.2 65002 00:13:33 Establ | 1 2 2 10.0.255.2 65002 00:13:33 Establ | 2 2
10.0.255.3 65003 00:11:30 Establ | 2 1 1 10.0.255.3 65003 00:11:30 Establ | 1 1
``` ```
Eventually, the state should be `Established` again. Eventually, the state should be `Established` again.
```bash ```bash
$ gobgp neighbor $ gobgp neighbor
Peer AS Up/Down State |#Advertised Received Accepted Peer AS Up/Down State |#Received Accepted
10.0.255.1 65001 00:00:02 Establ | 3 2 2 10.0.255.1 65001 00:00:02 Establ | 2 2
10.0.255.2 65002 00:14:59 Establ | 3 2 2 10.0.255.2 65002 00:14:59 Establ | 2 2
10.0.255.3 65003 00:12:56 Establ | 4 1 1 10.0.255.3 65003 00:12:56 Establ | 1 1
``` ```
## Reset, Reset, and Reset ## Reset, Reset, and Reset