libremesh / lime-app

Geek-free Web App for setup and mantainance of Libremesh nodes built on Preact
https://libremesh.github.io/lime-app/
GNU Affero General Public License v3.0
51 stars 27 forks source link

links that are not in the reference state are ofered to be removed from the state #453

Closed javierbrk closed 1 month ago

javierbrk commented 1 month ago

This is the ui

image

And this is the backend


[
    {
        "key": "LiMe-224ad6",
        "value": {
            "mAuthor": "LiMe-224ad6",
            "mTtl": {
                "xint64": 2185,
                "xstr64": "2185"
            },
            "mData": []
        }
    },
    {
        "key": "cheche",
        "value": {
            "mAuthor": "cheche",
            "mTtl": {
                "xint64": 2399,
                "xstr64": "2399"
            },
            "mData": {
                "links": {
                    "ae40411c8516ae40411df935": {
                        "freq": 5805,
                        "iface": "wlan1-mesh",
                        "tx_rate": 6000,
                        "dst_mac": "ae:40:41:1d:f9:35",
                        "channel": 161,
                        "chains": [
                            -56,
                            -54
                        ],
                        "signal": -52,
                        "rx_rate": 0,
                        "src_mac": "ae:40:41:1c:85:16"
                    },
                    "ae40411c85c3ae40411df934": {
                        "freq": 5785,
                        "iface": "wlan2-mesh",
                        "tx_rate": 180000,
                        "dst_mac": "ae:40:41:1d:f9:34",
                        "dst_loc": {
                            "long": "-64.42778",
                            "lat": "-31.72433"
                        },
                        "channel": 157,
                        "chains": [
                            -62,
                            -49
                        ],
                        "signal": -49,
                        "rx_rate": 180000,
                        "src_mac": "ae:40:41:1c:85:c3"
                    }
                },
                "src_loc": {
                    "long": "-64.42057",
                    "lat": "-31.81143"
                }
            }
        }
    },
    {
        "key": "graciela",
        "value": {
            "mAuthor": "graciela",
            "mTtl": {
                "xint64": 2399,
                "xstr64": "2399"
            },
            "mData": {
                "links": {
                    "ae40411c85c3ae40411df934": {
                        "freq": 5785,
                        "iface": "wlan2-mesh",
                        "tx_rate": 243000,
                        "dst_mac": "ae:40:41:1c:85:c3",
                        "dst_loc": {
                            "long": "-64.42057",
                            "lat": "-31.81143"
                        },
                        "channel": 157,
                        "chains": [
                            -62,
                            -55
                        ],
                        "signal": -54,
                        "rx_rate": 180000,
                        "src_mac": "ae:40:41:1d:f9:34"
                    }
                },
                "src_loc": {
                    "long": "-64.42778",
                    "lat": "-31.72433"
                }
            }
        }
    }
]
javierbrk commented 1 month ago

when clicking in the delete button the result is that this json

    {
        "key": "LiMe-224ad6",
        "value": {
            "mAuthor": "LiMe-224ad6",
            "mTtl": {
                "xint64": 2185,
                "xstr64": "2185"
            },
            "mData": []
        }
    },

changes into

{
        "key": "LiMe-224ad6",
        "value": {
            "mAuthor": "LiMe-224ad6",
            "mTtl": {
                "xint64": 2440,
                "xstr64": "2440"
            },
            "mData": {
                "links": {},
                "src_loc": {
                    "long": "-64.42108",
                    "lat": "-31.70714"
                }
            }
        }
    },
javierbrk commented 1 month ago

I also noticed that when I set the reference state for a node ... then i cant set it in all the other nodes this is the wifi links info json https://pad.codigosur.org/AM_wifi_links_issue

selankon commented 1 month ago

I also noticed that when I set the reference state for a node ... then i cant set it in all the other nodes this is the wifi links info json https://pad.codigosur.org/AM_wifi_links_issue

Please open another issue for this other thing, and explain detailed all I need to do to reproduce it

selankon commented 1 month ago

For the first issue the problem seems that it appear that the link is down because one of the links is not on the state yet.. Lets see how we can fix it

selankon commented 1 month ago

This should be enough afdf347