ffnord / ffmap-backend

THIS PROJECT DOESN'T HAVE A MAINTAINER!
Other
20 stars 59 forks source link

add mesh_vpn data to nodes.json #76

Closed t-8ch closed 8 years ago

t-8ch commented 8 years ago

Needed by ffnord/meshviewer#10

Example output in statistics object:

{
    "mesh_vpn": {
        "groups": {
            "backbone": {
                "peers": {
                    "w7": null,
                    "w8": null,
                    "w5": null,
                    "w6": {
                        "established": 819191.368
                    },
                    "w3": null,
                    "w0": null,
                    "w9": null,
                    "w4": {
                        "established": 398400.774
                    },
                    "w1": null,
                    "w2": null
                }
            }
        }
    }
}
tcatm commented 8 years ago

I think this is way too detailed and hardcoded to fit fastd. Some communities are already using l2tp or other mechanism. Can we reduce this to a flag in "flags"? Maybe call it "uplink"?

t-8ch commented 8 years ago

@tcatm Sure, will do.

tcatm commented 8 years ago

Great. Does this work for nested groups, too?

t-8ch commented 8 years ago

How do they look?

On December 28, 2015 8:09:12 PM GMT+01:00, Nils Schneider notifications@github.com wrote:

Great. Does this work for nested groups, too?


Reply to this email directly or view it on GitHub: https://github.com/ffnord/ffmap-backend/pull/76#issuecomment-167630290

Sent from my Android device with K-9 Mail. Please excuse my brevity.

ghost commented 8 years ago

This is always true.

tcatm commented 8 years ago

Nested peer groups will look like this:

groups { 
   foo {
       peers { ... }
       groups {
           ...
       }
   }
}