openBackhaul / MicroWaveDeviceInventory

Physical and logical inventory of the MW SDN Domain
Apache License 2.0
5 stars 1 forks source link

Cache output for profile collection API shows redundant data (profile-collection twice) - ouput differs from live #898

Closed Ziabatcha closed 5 months ago

Ziabatcha commented 5 months ago

Cache output for profile collection API shows redundant data - ouput differs from live

http://xx:xxx/core-model-1-4:network-control-domain=cache/control-construct=513559991B/profile-collection

Cache o/p:

http://xx:xxx/core-model-1-4:network-control-domain=cache/control-construct=513559991B/profile-collection
[live_profile_collection.txt](https://github.com/openBackhaul/MicroWaveDeviceInventory/files/14616933/live_profile_collection.txt)
[cache_profile_collection.txt](https://github.com/openBackhaul/MicroWaveDeviceInventory/files/14616934/cache_profile_collection.txt)

  "core-model-1-4:profile-collection": {
    "profile": [
      {
        "uuid": "WRED-433.2.5",
        "lifecycle-state": "core-model-1-4:LIFECYCLE_STATE_INSTALLED",
        "wred-profile-1-0:wred-profile-pac": {
          "wred-profile-configuration": {
            "gentle-wred-is-on": false,
            "threshold-low": -1,
            "sensitivity": 0,
            "threshold-high": -1,
            "threshold-gentle": -1,
            "external-label": "test TC 5",
            "drop-probability-at-threshold-high": 10,
            "drop-probability-at-threshold-low": -1,
            "coloring-is-on": false
          },

 "profile-collection": {
      "profile": [
        {
          "uuid": "WRED-433.2.5",
Ziabatcha commented 5 months ago

image

Ziabatcha commented 5 months ago

live_profile_collection.txt cache_profile_collection.txt

Ziabatcha commented 5 months ago

902_test_v1.1.5.

Ziabatcha commented 5 months ago

Tested with MWDI latest version test_v1.1.5. Issue is no longer observed. Profile collection is listed only once in cache and its in sync with live. 898.txt

http://xx:xxx/core-model-1-4:network-control-domain=cache/control-construct=513559991B/profile-collection