diff --git a/networkapi/plugins/Netconf/plugin.py b/networkapi/plugins/Netconf/plugin.py index e746ee05..526dec8a 100644 --- a/networkapi/plugins/Netconf/plugin.py +++ b/networkapi/plugins/Netconf/plugin.py @@ -8,7 +8,7 @@ import requests, json, os from django.db.utils import DatabaseError from networkapi.system.exceptions import VariableDoesNotExistException - +from networkapi.extra_logging import local log = logging.getLogger(__name__) @@ -194,7 +194,8 @@ def exec_command(self, command, success_regex='', invalid_regex=None, error_rege response = requests.post( url="http://localhost:5000/deploy", - headers={"Content-type": "application/json"}, + headers={"Content-type": "application/json", + "X-Request-Id": getattr(local, "request_id", None)}, data=json.dumps({ "address": self.equipment_access.fqdn, "username": self.equipment_access.user,