Documentation
¶
Overview ¶
Package netconf contains netconf-based utility functions used in containerlab.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfig ¶ added in v0.69.0
GetConfig retrieves the running configuration and returns it as a string. It automatically picks the appropriate network driver for the provided Scrapli Platform.
func MultiExec ¶ added in v0.70.0
MultiExec opens a NETCONF session to the provided address and executes the supplied operations sequentially. The driver is opened once and used across every operation, enabling scenarios that require multiple NETCONF calls within a single session (for example, chaining import actions prior to committing configuration changes).
func SaveRunningConfig ¶ added in v0.69.0
SaveRunningConfig saves the running config to the startup by means of invoking a netconf rpc <copy-config> from running to startup datastore this method is used on the network elements that can't perform configuration save via other means.