From a82fec74a64a7d9e5fd95ee00e85b447c3d6a2f4 Mon Sep 17 00:00:00 2001 From: David Barroso Date: Mon, 16 Mar 2015 09:53:35 +0100 Subject: [PATCH] removed unnecesary stuff --- drivers/junos.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/junos.py b/drivers/junos.py index 171ef4b..0caa473 100644 --- a/drivers/junos.py +++ b/drivers/junos.py @@ -3,14 +3,6 @@ from base import NetworkDriver from jnpr.junos import Device 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): @@ -22,7 +14,7 @@ class JunOSDriver(NetworkDriver): def open(self): self.device.open() - self.device.bind( cu=Config ) + self.device.bind(cu=Config) self.device.cu.lock() def close(self):