Skip to content
Snippets Groups Projects
Commit a0f3fb24 authored by Robert Latta's avatar Robert Latta
Browse files

Added additional Navigation Properties; updated Navigation Property keys to match IMS documentation

parent 06c8982e
No related branches found
No related tags found
No related merge requests found
......@@ -25,26 +25,36 @@ CUSTOMER_PROPERTIES = {
}
# http://149.210.162.190:81/ImsVersions/4.19.9/html/2d27d509-77cb-537d-3ffa-796de7e82af8.htm # noqa
NODE_PROPERTIES = {
'equipment definition': 16,
'management system': 128,
'site': 256,
'node city': 32768,
'order': 67108864,
'node country': 1073741824
'EquipmentDefinition': 16,
'ManagementSystem': 128,
'Site': 256,
'NodeCity': 32768,
'Order': 67108864,
'NodeCountry': 1073741824
}
# http://149.210.162.190:81/ImsVersions/4.19.9/html/347cb410-8c05-47bd-ceb0-d1dd05bf98a4.htm # noqa
CITY_PROPERTIES = {
'country': 8
'Country': 8
}
# http://149.210.162.190:81/ImsVersions/4.19.9/html/347cb410-8c05-47bd-ceb0-d1dd05bf98a4.htm # noqa
# http://149.210.162.190:81/ImsVersions/4.19.9/html/a8dc6266-d934-8162-4a55-9e1648187f2c.htm # noqa
EQUIP_DEF_PROPERTIES = {
'nodes': 4096
'Nodes': 4096
}
# http://149.210.162.190:81/ImsVersions/4.19.9/html/9c8d50f0-842c-5959-0fa6-14e1720669ec.htm # noqa
SITE_PROPERTIES = {
'aliases': 64,
'city': 2,
'country': 256
'City': 2,
'SiteAliases': 64,
'Country': 256
}
# http://149.210.162.190:81/ImsVersions/4.19.9/html/8ce06cb7-7707-46c4-f02f-86083310d81b.htm # noqa
VENDOR_PROPERTIES = {
'VendorRelatedContacts': 64,
'VendorType': 1024
}
# http://149.210.162.190:81/ImsVersions/4.19.9/html/62e7aa63-aff0-6992-7697-377ace239c4f.htm # noqa
VENDOR_RELATED_CONTACT_PROPERTIES = {
'Vendor': 8,
'Contact': 16
}
......@@ -131,7 +141,7 @@ class IMS(object):
cache_key = f'{cache_key}::{s}'
entity = IMS.cache.get(cache_key, None)
if entity:
print('Got from cache') # Remove after demo
# print('Got from cache') # Remove after demo
return entity
if not IMS.bearer_token:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment