Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Configuration doc: fix separator and indentation #10839

Merged
merged 2 commits into from
May 17, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 26 additions & 24 deletions src/sonic-yang-models/doc/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,18 @@ redis and json, correspondingly:


***Redis format***

```
127.0.0.1:6379[4]> keys BGP_NEIGHBOR:*
127.0.0.1:6379[4]> keys BGP_NEIGHBOR|*

1) "BGP_NEIGHBOR:10.0.0.31"
2) "BGP_NEIGHBOR:10.0.0.39"
3) "BGP_NEIGHBOR:10.0.0.11"
4) "BGP_NEIGHBOR:10.0.0.7"
1) "BGP_NEIGHBOR|10.0.0.31"
2) "BGP_NEIGHBOR|10.0.0.39"
3) "BGP_NEIGHBOR|10.0.0.11"
4) "BGP_NEIGHBOR|10.0.0.7"

...

127.0.0.1:6379[4]> hgetall BGP_NEIGHBOR:10.0.0.3
127.0.0.1:6379[4]> hgetall BGP_NEIGHBOR|10.0.0.3

1) "admin_status"
2) "up"
Expand All @@ -128,26 +129,27 @@ redis and json, correspondingly:
```

***Json format***

```
"BGP_NEIGHBOR": {
"10.0.0.57": {
"rrclient": "0",
"name": "ARISTA01T1",
"local_addr": "10.0.0.56",
"nhopself": "0",
"holdtime": "10",
"asn": "64600",
"keepalive": "3"
},
"10.0.0.59": {
"rrclient": "0",
"name": "ARISTA02T1",
"local_addr": "10.0.0.58",
"nhopself": "0",
"holdtime": "10",
"asn": "64600",
"keepalive": "3"
},
10.0.0.57: {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May i know the reason for removing the quotes? I believe those are required in json format right?

Copy link
Collaborator Author

@qiluo-msft qiluo-msft May 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's my mistake. Fixed.

rrclient: 0,
name: ARISTA01T1,
local_addr: 10.0.0.56,
nhopself: 0,
holdtime: 10,
asn: 64600,
keepalive: 3
},
10.0.0.59: {
rrclient: 0,
name: ARISTA02T1,
local_addr: 10.0.0.58,
nhopself: 0,
holdtime: 10,
asn: 64600,
keepalive: 3
},
}
```

Expand Down