Closed ktbyers closed 7 years ago
Note, this requires Netmiko 1.2.7 which I have to release.
New, optional_arg = inline_transfer needs documented.
In the case where a temporary config file needs written, it writes this to os.getcwd(). IMO, this is better than /tmp (as config files might have security sensitive info in them).
I verified the following
merge from file (SCP) merge from inline config (SCP) merge from file (InLineTransfer TCL) merge from inline config (InLineTransfer TCL)
replace from file (SCP) replace from inline config (SCP) replace from file (InLineTransfer TCL) replace from inline config (InLineTransfer TCL)
This is great! When you release netmiko let us know. I would certainly want to test myself and see how it looks and feels : )
@dbarrosop @mirceaulinic Okay, Netmiko 1.2.7 has been released so this should work now. Please test and review :-)
This looks good to me! But unfortunately I cannot test; and I think @dbarrosop does not have a device running IOS either. Let's see if other people would like to volunteer :)
@ogenstad @DiogoAndre @XioNoX would you mind testing this branch and provide some feedback?
Thanks!
I have tested it quite a bit...so I am happy release it.
If people want to test it more...have at it :-)
Alright, let's release then! Feedback will be welcome at any point after! :)
Seems to work just fine thank you very much @ktbyers
Add support for config inline (i.e. config argument to merge and replace methods).
Add support for incremental diff on Cisco IOS (for improved compare_config)
Add support for Netmiko's InLineTransfer mechanism that uses TCL to eliminate requirement for SCP file operation.