helper
nornir_scrapli.helper
diff_xml_text(document_one: str, document_two: str) -> str
¶
Diff xml text strings
Really could be just "diff text" but also ensuring we ignore the "message-id" lines. This is really pretty simple and not always super great, but better than nothing for now!
Parameters:
Name | Type | Description | Default |
---|---|---|---|
document_one |
str
|
string of xml doc 1 |
required |
document_two |
str
|
string of xml doc 2 |
required |
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
unified diff of the two input documents |
Source code in nornir_scrapli/helper.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
|