Last active
December 14, 2020 08:07
-
-
Save ganeshrn/912d88b7ff5b6a959e82c4935d9b4d0c to your computer and use it in GitHub Desktop.
validate task run output
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
TASK [validate interface for admin state] *********************************************************************************************************** | |
Monday 14 December 2020 11:05:37 +0530 (0:00:01.886) 0:00:27.014 ******* | |
fatal: [nxos]: FAILED! => {"changed": false, "errors": [{"data_path": "Ethernet2/1.admin_state", "expected": "up", "found": "down", "json_path": "$.Ethernet2/1.admin_state", "message": "'down' does not match 'up'", "relative_schema": {"pattern": "up", "type": "string"}, "schema_path": "patternProperties.^.*.properties.admin_state.pattern", "validator": "pattern"}, {"data_path": "Ethernet2/10.admin_state", "expected": "up", "found": "down", "json_path": "$.Ethernet2/10.admin_state", "message": "'down' does not match 'up'", "relative_schema": {"pattern": "up", "type": "string"}, "schema_path": "patternProperties.^.*.properties.admin_state.pattern", "validator": "pattern"}], "msg": "Validation errors were found.\nAt 'patternProperties.^.*.properties.admin_state.pattern' 'down' does not match 'up'. \nAt 'patternProperties.^.*.properties.admin_state.pattern' 'down' does not match 'up'. \nAt 'patternProperties.^.*.properties.admin_state.pattern' 'down' does not match 'up'. "} | |
...ignoring | |
TASK [print the interface names that does not satisfy the desired state] **************************************************************************** | |
Monday 14 December 2020 11:05:38 +0530 (0:00:01.661) 0:00:28.676 ******* | |
ok: [nxos] => (item={'message': "'down' does not match 'up'", 'data_path': 'Ethernet2/1.admin_state', 'json_path': '$.Ethernet2/1.admin_state', 'schema_path': 'patternProperties.^.*.properties.admin_state.pattern', 'relative_schema': {'type': 'string', 'pattern': 'up'}, 'expected': 'up', 'validator': 'pattern', 'found': 'down'}) => { | |
"msg": "Ethernet2/1" | |
} | |
ok: [nxos] => (item={'message': "'down' does not match 'up'", 'data_path': 'Ethernet2/10.admin_state', 'json_path': '$.Ethernet2/10.admin_state', 'schema_path': 'patternProperties.^.*.properties.admin_state.pattern', 'relative_schema': {'type': 'string', 'pattern': 'up'}, 'expected': 'up', 'validator': 'pattern', 'found': 'down'}) => { | |
"msg": "Ethernet2/10" | |
} | |
PLAY RECAP ****************************************************************************************************************************************** | |
nxos : ok=4 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment