summaryrefslogtreecommitdiffstats
path: root/app/utils
diff options
context:
space:
mode:
authorYaron Yogev <yaronyogev@gmail.com>2017-07-31 08:02:26 +0300
committerYaron Yogev <yaronyogev@gmail.com>2017-07-31 08:59:46 +0300
commit6f42e246e99aa390e9b55c62bb47ef2ef556c2e6 (patch)
treead79ee9e4712953be6da134987da7383557ce15b /app/utils
parentc22d277cf90c31b54e5b9f94cee38f7cddedcdc1 (diff)
US2765 ACI scanning:
Added spine switches and pnics fetching functionality Change-Id: Ifc090b31e3821303b94d7a4efe8f887c47458071 Signed-off-by: Yaron Yogev <yaronyogev@gmail.com>
Diffstat (limited to 'app/utils')
-rw-r--r--app/utils/util.py4
1 files changed, 2 insertions, 2 deletions
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):