removed unnecesary stuff
This commit is contained in:
1 parent
d4d3c20929
commit
a82fec74a6
1 file changed
-8
@@ -3,14 +3,6 @@ from base import NetworkDriver
|
|||||||
from jnpr.junos import Device
|
from jnpr.junos import Device
|
||||||
from jnpr.junos.utils.config import Config
|
from jnpr.junos.utils.config import Config
|
||||||
|
|
||||||
def __execute_rpc__(conn, rpc_command):
|
|
||||||
output = conn.rpc(str(rpc_command))
|
|
||||||
|
|
||||||
if len(output.xpath('/rpc-reply/error')) > 0:
|
|
||||||
raise Exception(output.tostring)
|
|
||||||
|
|
||||||
return output
|
|
||||||
|
|
||||||
|
|
||||||
class JunOSDriver(NetworkDriver):
|
class JunOSDriver(NetworkDriver):
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user