diff --git a/clixon/clixon.py b/clixon/clixon.py index 0caea05..14696d7 100644 --- a/clixon/clixon.py +++ b/clixon/clixon.py @@ -557,7 +557,7 @@ def show_compare(self, set_root: Optional[bool] = False) -> str: return data - def show_devices_diff(self, dict_format: Optional[bool] = False) -> str: + def show_devices_diff(self, device: Optional[str] = "*", dict_format: Optional[bool] = False) -> str: """ Show the devices diff. @@ -566,9 +566,9 @@ def show_devices_diff(self, dict_format: Optional[bool] = False) -> str: """ - self.pull(transient=True) + self.pull(device=device, transient=True) - rpc_show_devices_diff = rpc_datastore_diff(transient=True, user=self.__user) + rpc_show_devices_diff = rpc_datastore_diff(device=device, transient=True, user=self.__user) send(self.__socket, rpc_show_devices_diff, pp) data = read(self.__socket, pp, standalone=self.__standalone) diff --git a/clixon/netconf.py b/clixon/netconf.py index 9fc1737..37ea643 100644 --- a/clixon/netconf.py +++ b/clixon/netconf.py @@ -497,6 +497,7 @@ def rpc_apply_service( def rpc_datastore_diff( + device: Optional[str] = "*", compare: Optional[bool] = False, transient: Optional[bool] = False, user: Optional[str] = None, @@ -530,7 +531,7 @@ def rpc_datastore_diff( config_type1 = "RUNNING" config_type2 = "ACTIONS" - root.rpc.datastore_diff.create("device", data="*") + root.rpc.datastore_diff.create("device", data=device) root.rpc.datastore_diff.create("config-type1", data=config_type1) root.rpc.datastore_diff.create("config-type2", data=config_type2)