lime-packages icon indicating copy to clipboard operation
lime-packages copied to clipboard

Links information module for shared state according to babeld

Open javierbrk opened this issue 1 year ago • 2 comments

This module incorporates links information extracted from babel using ubus infrastructure. The module has been tested in three wrd3500 and the output of the echo | shared-state reqsync babel_links_info in my setup is

{
    "primero": {
        "bleachTTL": 30,
        "data": [{
            "dst_ip": "fe80::c24a:ff:fefc:3abe",
            "iface": "wlan0-mesh_17",
            "src_ip": "fe80::a2f3:c1ff:fe46:2896"
        }, {
            "dst_ip": "fe80::16cc:20ff:feda:4eac",
            "iface": "wlan1-mesh_17",
            "src_ip": "fe80::a2f3:c1ff:fe46:2897"
        }, {
            "dst_ip": "fe80::c24a:ff:fefc:3abf",
            "iface": "wlan1-mesh_17",
            "src_ip": "fe80::a2f3:c1ff:fe46:2897"
        }, {
            "dst_ip": "fe80::16cc:20ff:feda:4eab",
            "iface": "wlan0-mesh_17",
            "src_ip": "fe80::a2f3:c1ff:fe46:2896"
        }, {
            "dst_ip": "fe80::16cc:20ff:feda:4eaa",
            "iface": "eth0-1_17",
            "src_ip": "fe80::a2f3:c1ff:fe46:2895"
        }],
        "author": "primero"
    },
    "tercero": {
        "bleachTTL": 28,
        "data": [{
            "dst_ip": "fe80::16cc:20ff:feda:4eac",
            "iface": "wlan1-mesh_17",
            "src_ip": "fe80::c24a:ff:fefc:3abf"
        }, {
            "dst_ip": "fe80::a2f3:c1ff:fe46:2896",
            "iface": "wlan0-mesh_17",
            "src_ip": "fe80::c24a:ff:fefc:3abe"
        }, {
            "dst_ip": "fe80::16cc:20ff:feda:4eab",
            "iface": "wlan0-mesh_17",
            "src_ip": "fe80::c24a:ff:fefc:3abe"
        }, {
            "dst_ip": "fe80::a2f3:c1ff:fe46:2897",
            "iface": "wlan1-mesh_17",
            "src_ip": "fe80::c24a:ff:fefc:3abf"
        }],
        "author": "tercero"
    },
    "segundo": {
        "bleachTTL": 28,
        "data": [{
            "dst_ip": "fe80::a2f3:c1ff:fe46:2896",
            "iface": "wlan0-mesh_17",
            "src_ip": "fe80::16cc:20ff:feda:4eab"
        }, {
            "dst_ip": "fe80::c24a:ff:fefc:3abe",
            "iface": "wlan0-mesh_17",
            "src_ip": "fe80::16cc:20ff:feda:4eab"
        }, {
            "dst_ip": "fe80::a2f3:c1ff:fe46:2895",
            "iface": "eth0-1_17",
            "src_ip": "fe80::16cc:20ff:feda:4eaa"
        }, {
            "dst_ip": "fe80::a2f3:c1ff:fe46:2897",
            "iface": "wlan1-mesh_17",
            "src_ip": "fe80::16cc:20ff:feda:4eac"
        }, {
            "dst_ip": "fe80::c24a:ff:fefc:3abf",
            "iface": "wlan1-mesh_17",
            "src_ip": "fe80::16cc:20ff:feda:4eac"
        }],
        "author": "segundo"
    }
}

javierbrk avatar Sep 28 '23 17:09 javierbrk

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 79.59%. Comparing base (4dc7f98) to head (f442b02).

:exclamation: Current head f442b02 differs from pull request most recent head d4175d5. Consider uploading reports for the commit d4175d5 to get more accurate results

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1056      +/-   ##
==========================================
+ Coverage   79.56%   79.59%   +0.03%     
==========================================
  Files          53       53              
  Lines        4566     4568       +2     
==========================================
+ Hits         3633     3636       +3     
+ Misses        933      932       -1     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Oct 06 '23 19:10 codecov-commenter

should be ported to shared-state-async before merging

G10h4ck avatar Feb 08 '24 18:02 G10h4ck