-
Notifications
You must be signed in to change notification settings - Fork 650
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
dd337eb
commit 6e0bba0
Showing
7 changed files
with
265 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"tables": { | ||
"": { | ||
"services_to_validate": [ "system_health" ] | ||
}, | ||
"PORT": { | ||
"services_to_validate": [ "port_service" ] | ||
} | ||
}, | ||
"README": [ | ||
'Validate_commands provides, module & method name as ', | ||
' <module name>.<method name>', | ||
'NOTE: module name could have "."', | ||
' ', | ||
'The last element separated by "." is considered as ', | ||
'method name', | ||
'', | ||
'e.g. "show.acl.test_acl"', | ||
'', | ||
'Here we load "show.acl" and call "test_acl" method on it.', | ||
'', | ||
'called as:', | ||
' <module>.<method>>(<config before change>, ', | ||
' <config after change>, <affected keys>)', | ||
' config is in JSON format as in config_db.json', | ||
' affected_keys in same format, but w/o value', | ||
' { "ACL_TABLE": { "SNMP_ACL": {} ... }, ...}', | ||
' The affected keys has "added", "updated" & "deleted"', | ||
'', | ||
'Multiple validate commands may be provided.',', | ||
'', | ||
'Note: The commands may be called in any order', | ||
'' | ||
], | ||
"services": { | ||
"system_health": { | ||
"validate_commands": [ ] | ||
}, | ||
"port_service": { | ||
"validate_commands": [ ] | ||
} | ||
} | ||
} | ||
|
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
24 changes: 24 additions & 0 deletions
24
tests/generic_config_updater/files/change_applier_test.conf.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 @@ | ||
{ | ||
"tables": { | ||
"": { | ||
"services_to_validate": [ "system_health" ] | ||
}, | ||
"PORT": { | ||
"services_to_validate": [ "port_service" ] | ||
}, | ||
"VLAN_INTERFACE": { | ||
"services_to_validate": [ "port_service", "vlan_service" ] | ||
} | ||
}, | ||
"services": { | ||
"system_health": { | ||
"validate_commands": [ "..tests.generic_config_updater.change_applier_test.system_health" ] | ||
} | ||
"ACL_TABLE": { | ||
"validate_commands": [ "..tests.generic_config_updater.change_applier_test.acl_validate" ] | ||
}, | ||
"VLAN_INTERFACE": { | ||
"validate_commands": [ "..tests.generic_config_updater.change_applier_test.vlan_validate" ] | ||
} | ||
} | ||
} |
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