Marcus Hoff
d4e25b4e46
Update file mode
...
Default file mode i binary, updated to string
2020-11-16 09:27:15 +01:00
Marcus Hoff
619fc3d32c
Fix expected results for sanitized
...
changed the return password to be hidden
2020-10-23 11:21:13 +02:00
Marcus Hoff
7e470df55e
Fix expected results
...
Fixed wrong output and new lines in expected results and corrected the show output for test_get_config
2020-10-23 10:46:52 +02:00
Marcus Hoff
1200cf4328
Fix sanitized_test, Add str return to candidate
...
Change the expected results of sanitized test.
If candidate config is None return empty string
2020-10-22 18:28:34 +02:00
Marcus Hoff
d970ad22c9
Fixed tests
...
Add missing case test_get_config_filtere
Correct names of mock files
2020-10-22 16:51:57 +02:00
Marcus Hoff
7107560f84
Add tests for get_config
...
Add test cases for normal and sanitized versions.
Add support for config mode in mock device.
2020-10-22 14:54:34 +02:00
Marcus Hoff
5ab6f4de21
Add get_config method
...
Supports all retrive options, where 'candidate' is the Napalm candidate.
Either gets the boot config as 'startup' or output from 'show' in edit mode for 'running'
Supports sanitized only for 'running'. Outputs the 'show' in op mode.
2020-10-21 16:34:52 +02:00
Marcus Hoff
a205b99ca5
Update serial_number and model
...
Fixes my bugs
2020-10-18 15:06:58 +02:00
Marcus Hoff
a4a0645f27
Update serial_number and model
...
Updated the match pattern of serial_number and model to the current 1.2/1.3 release of Vyos, maintained code for older versions
2020-10-18 14:22:50 +02:00