Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • @Activation
    • Get the Segment IDs of all devices in the network from Network Config service
    • Get "isEdgeRouter" attribute for this device from Network Config service
    • Create Neighbor <-> Port mapping database based on current topology
    • Create Port <-> Neighbor mapping database based on current topology
    • If AUDIT is in progress at Group subsystem for this device
      • Start a timer and perform the Sanity check
    • Sanity Check
      • Compute power set of all Neighbors
      • Pair them with all applicable Segment IDs if the current device is a edge router
      • Determine the SRDefaultGroupKeys for each pair and create groups using Group service API if there is no group existing with this Key
  • @LINK_UP involving one of device ports
    • Find the Neighbor Device ID
    • If (Neighbor is already present in the database for this device)
      • That means this new link is part of group of links to that Neighbor (e.g. LAG)
      • Determine all SRDefaultGroupKeys that are impacted due to this new link from the information of existing device ports Port <-> Neighbor & Neighbor <-> Port databases and Segment IDs
      • Invoke "addBucketsToGroup()" API of the GroupService with a new SRDefaultGroupKey for all the impacted Groups
      • Update Neighbor <-> Port mapping database
      • Update Port <-> Neighbor mapping database
    • Else
      • That means this new link discovers a new neighbor
      • Update Neighbor <-> Port mapping database
      • Update Port <-> Neighbor mapping database
      • Recompute neighbor power sets with updated neighbor database and determine the delta entries and pair them up with applicable segment IDs
      • Determine the SRDefaultGroupKeys for each pair and create groups using Group service API if there is no group existing with this Key.
  • @PORT_UP
    • No Action
  • @PORT_DOWN
    • Determine all SRDefaultGroupKeys that are impacted due to this PORT_DOWN event from the information of Port <-> Neighbor & Neighbor <-> Port databases and Segment IDs
    • Invoke "removeBucketsFromGroup()" API of the GroupService with a new SRDefaultGroupKey for all the impacted Groups
    • Update Neighbor <-> Port mapping database
    • Update Port <-> Neighbor mapping database

 

Policy Group Handler & Recovery

...