"async connection with 'AsyncScrapliCfg'!" "provided scrapli connection is sync but using 'AsyncScrapliCfg' - you must use an " ScrapliCfgException: if provided connection object is sync but is not a supported ("core") ScrapliCfgException: if provided connection object is async Kwargs: keyword args to pass to the scrapli_cfg object (for things like iosxe 'filesystem' Just failing in a potentially awkward fashion. For example, for EOS devices we need > 4.14 to load configs so if aĭevice is encountered at 4.13 the version check would raise an exception rather than Will (hopefully) be used in the future to limit what methods can be used against a Scrapli-cfg will not fetch the device version during the prepare phase, however this Ignore_version: ignore checking device version support currently this just means that Using with a context manager, `prepare` will open the scrapli connection (if notĪlready open), and `close` will close the scrapli connection. If `True` will automatically open and close the scrapli connection when Underlying scrapli connection and will raise an exception if the scrapli connection On_prepare: optional callable to run at connection `prepare`ĭedicated_connection: if `False` (default value) scrapli cfg will not open or close the Version inherited from the base ScrapliCfgPlatform and did not implement the abstract methods Just so that the naming convention (w/ upper case things) is "right", but given that the class Return a sync scrapli config object for the provided platform. From typing import TYPE_CHECKING, Any, Callable, List, Optionalįrom import AsyncNetworkDriver, NetworkDriverįrom scrapli_cfg.exceptions import ScrapliCfgExceptionįrom scrapli_eos import AsyncScrapliCfgEOS, ScrapliCfgEOSįrom scrapli_iosxe import AsyncScrapliCfgIOSXE, ScrapliCfgIOSXEįrom scrapli_iosxr import AsyncScrapliCfgIOSXR, ScrapliCfgIOSXRįrom scrapli_nxos import AsyncScrapliCfgNXOS, ScrapliCfgNXOSįrom scrapli_junos import AsyncScrapliCfgJunos, ScrapliCfgJunosįrom scrapli_platform import AsyncScrapliCfgPlatform # pragma: no coverįrom scrapli_platform import ScrapliCfgPlatform # pragma: no coverĬonfig_sources: Optional] = None,
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |