• Aaron U'Ren's avatar
    fix(sync_routes): add deletion / immediate syncing · 4fd7bc4d
    Aaron U'Ren authored
    Added the following items to the original logic:
    * Added map route entry deletion on withdrawl so that the system doesn't
      incorrectly sync it back to the kernel's routing table
    * Added an immediate route sync upon BGP path receive
    * Added a mutex to ensure that deleted routes aren't accidentally synced
      back to the system
    * Added stopCh and wg (wait group) handling
    * Increase default sync time from 15 seconds to 1 minute since this
      scenario is unlikely and netlink calls could potentially be burdensome
      in large clusters.
    4fd7bc4d