Juniper / go-netconf

NETCONF implementation in Go.
Other
253 stars 110 forks source link

Expose error-option as input parameter #110

Closed ferrier1 closed 1 year ago

ferrier1 commented 2 years ago

It seems that some versions of Junos do not support the <error-option>rollback-on-error</error-option> when making changes to config.

This MR uses a string formatter that allows the caller of the MethodEditConfig function to pass in another error-option such as stop-on-error

Tested on Junos version 17.1R3.6

Includes an example for usage

nemith commented 1 year ago

Closing this for now, however a new function name with this exposed would be good.