Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
Created on
‎11-23-2021
11:14 PM
Edited on
‎08-06-2022
11:05 PM
By
apiMigrationUse
Thanks for sharing @Swapnil. We appreciate your observation and contribution.
@Shravan, please can you get this change validated and incorporated in the respective connector.​​
------------------------------
Abhishek Narula
CTO, SOAR Division | VP Product Engineering
------------------------------
-------------------------------------------
Original Message:
Sent: Nov 23, 2021 05:13 AM
From: Swapnil Koulgikar
Subject: Misspelled xpath in Palo Alto Panaroma connector in delete_address_object in 7.0.1 release
In the below connector code from operations.py it is observed that the xpath is misspelled as 'xapth' when defining the data variable. My guess is this will never work. This might have been missed as unblock IP action is not the most commonly used action by customers. For one of our use cases the customer requirement was to periodically check the reputation of already marked Malicious Ips and unblock them if they are found to be non-malicious.
def __delete_address_object(self, ip, device_group):
address_name = _format_address_name(ip)
xpath = "/config/devices/entry/device-group/entry[@name='{device_group}']/address/entry[@name='{address_name}']".format(
address_name=address_name, device_group=device_group)
try:
data = {'action': 'delete', 'xapth': xpath}
self.__make_request(data)
except Exception as exp:
logger.debug("Unblocking of IP failed %s" % str(exp))
raise ConnectorError("Failed to unblock the IP %s" % str(exp))
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.