diff options
author | Yaron Yogev <yaronyogev@gmail.com> | 2017-07-31 08:02:26 +0300 |
---|---|---|
committer | Yaron Yogev <yaronyogev@gmail.com> | 2017-07-31 08:02:26 +0300 |
commit | dea6c3a8cabb496ba7ec2319ec276de30417d2ca (patch) | |
tree | ad79ee9e4712953be6da134987da7383557ce15b /app/utils/util.py | |
parent | c22d277cf90c31b54e5b9f94cee38f7cddedcdc1 (diff) |
US2765 ACI scanning: Added spine switches and pnics fetching functionality
Change-Id: Ie5fc4f8932b96d368b613038c342098eec8438cd
Signed-off-by: Yaron Yogev <yaronyogev@gmail.com>
Diffstat (limited to 'app/utils/util.py')
-rw-r--r-- | app/utils/util.py | 4 |
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): |