This repository was archived by the owner on Nov 15, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from netnir .helpers .scaffold .command import CommandScaffold
22
3- """inventory cli commands
4- """
5-
63
74class Inventory (CommandScaffold ):
85 """
@@ -13,9 +10,6 @@ def run(self):
1310 from netnir .plugins .facts import inventory_facts
1411 from nornir .plugins .functions .text import print_result
1512
16- """
17- cli execution
18- """
1913 self .nr = self ._inventory ()
2014 results = self .nr .run (task = inventory_facts )
2115 print_result (results )
Original file line number Diff line number Diff line change 11from netnir .helpers .scaffold .command import CommandScaffold
22
3- """netconf commands"""
4-
53
64class NetConf (CommandScaffold ):
7- """netconf commands class """
5+ """netconf commands"""
86
97 def run (self ):
108 """execute netconf commands
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ def parser(parser):
2828
2929 def run (self ):
3030 """things to do"""
31- pass
31+ return "things to do"
3232
3333 def _inventory (self ):
3434 """filter inventory
Original file line number Diff line number Diff line change 11from nornir .core .task import Task , Result
22
3- """netconf nornir plugin"""
4-
53
64def netconf_get (task : Task ) -> Result :
75 """nornir netconf get task
You can’t perform that action at this time.
0 commit comments