hdb3 / hBGP

A complete functional language implementation of a BGP stack (BGP speaker, dataplane, MRT and BMP)
Apache License 2.0
1 stars 1 forks source link

coding grace: remove hierarchical graph between global, peer and route #11

Open hdb3 opened 4 years ago

hdb3 commented 4 years ago

Routes belong to peers, but should the route record really hold a peer record value? Not withstanding the implications it has for updating GC use counts for peers.... Ditto global in peer - why should this not be explicit?

hdb3 commented 4 years ago

consider doing this by making a 'Global' Monad with or even stacked monads for both Global and Peer. Latter would formalise separation of Peer processes nicely....