From 6f42e246e99aa390e9b55c62bb47ef2ef556c2e6 Mon Sep 17 00:00:00 2001 From: Yaron Yogev Date: Mon, 31 Jul 2017 08:02:26 +0300 Subject: US2765 ACI scanning: Added spine switches and pnics fetching functionality Change-Id: Ifc090b31e3821303b94d7a4efe8f887c47458071 Signed-off-by: Yaron Yogev --- app/utils/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/utils/util.py') diff --git a/app/utils/util.py b/app/utils/util.py index 4695879..385dea7 100644 --- a/app/utils/util.py +++ b/app/utils/util.py @@ -160,11 +160,11 @@ def get_extension(file_path: str) -> str: def encode_aci_dn(object_id): - return object_id.replace("topology/", "").replace("/", "___").replace("-", "__") + return object_id.replace("topology/", "").replace("/", "__") def decode_aci_dn(object_id): - return object_id.replace("___", "/").replace("__", "-") + return object_id.replace("__", "/") def get_object_path_part(path: str, part_name: str): -- cgit 1.2.3-korg