-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '2.0' of github.com:nornir-automation/nornir into pydantic
- Loading branch information
Showing
6 changed files
with
151 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,10 @@ | ||
from typing import Dict, TYPE_CHECKING, Type | ||
|
||
|
||
from .napalm import Napalm | ||
from .netmiko import Netmiko | ||
from .paramiko import Paramiko | ||
|
||
if TYPE_CHECKING: | ||
from nornir.core.connections import ConnectionPlugin # noqa | ||
from nornir.core.connections import Connections | ||
|
||
|
||
available_connections: Dict[str, Type["ConnectionPlugin"]] = { | ||
"napalm": Napalm, | ||
"netmiko": Netmiko, | ||
"paramiko": Paramiko, | ||
} | ||
def register_default_connection_plugins() -> None: | ||
Connections.register("napalm", Napalm) | ||
Connections.register("netmiko", Netmiko) | ||
Connections.register("paramiko", Paramiko) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters