-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bf592f6
commit c1b5fcc
Showing
6 changed files
with
114 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"BMP_TABLE_WITH_VALID_CONFIG": { | ||
"desc": "BMP TABLE WITH VALID CONFIG." | ||
}, | ||
"BMP_TABLE_WITH_INVALID_CONFIG": { | ||
"desc": "BMP TABLE WITH INVALID CONFIG.", | ||
"eStrKey": "Pattern" | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/sonic-yang-models/tests/yang_model_tests/tests_config/bmp.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"BMP_TABLE_WITH_VALID_CONFIG": { | ||
"sonic-bmp:sonic-bmp": { | ||
"sonic-bmp:BMP": { | ||
"table": { | ||
"bgp_neighbor_table": "true", | ||
"bgp_rib_in_table": "false", | ||
"bgp_rib_out_table": "false" | ||
} | ||
} | ||
} | ||
}, | ||
"BMP_TABLE_WITH_INVALID_CONFIG": { | ||
"sonic-bmp:sonic-bmp": { | ||
"sonic-bmp:BMP": { | ||
"table": { | ||
"bgp_neighbor_table": "up", | ||
"bgp_rib_in_table": "false", | ||
"bgp_rib_out_table": "false" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
module sonic-bmp { | ||
|
||
yang-version 1.1; | ||
|
||
namespace "http://github.com/sonic-net/sonic-bmp"; | ||
prefix bmp; | ||
|
||
import sonic-types { | ||
prefix stypes; | ||
} | ||
|
||
organization | ||
"SONiC"; | ||
|
||
contact | ||
"SONiC"; | ||
|
||
description "BMP YANG Module for SONiC OS"; | ||
|
||
revision 2024-03-20 { | ||
description "First Revision"; | ||
} | ||
|
||
container sonic-bmp { | ||
|
||
container BMP { | ||
|
||
description "BMP TABLE control part of config_db.json"; | ||
|
||
container table { | ||
|
||
leaf bgp_neighbor_table { | ||
type stypes:boolean_type; | ||
default "true"; | ||
description "Flag for enabling/disabling bgp_neighbor_table dump."; | ||
} | ||
|
||
leaf bgp_rib_in_table { | ||
type stypes:boolean_type; | ||
default "false"; | ||
description "Flag for enabling/disabling bgp_rib_in_table dump."; | ||
} | ||
|
||
leaf bgp_rib_out_table { | ||
type stypes:boolean_type; | ||
default "false"; | ||
description "Flag for enabling/disabling bgp_rib_out_table dump."; | ||
} | ||
|
||
} | ||
|
||
} | ||
|
||
} | ||
|
||
} |