Skip to content

Commit

Permalink
Remove stale code.
Browse files Browse the repository at this point in the history
  • Loading branch information
robshakir committed Oct 23, 2023
1 parent 015ca67 commit 9da498f
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions rib/reconciler/reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,39 +183,7 @@ func diff(src, dst *rib.RIB, explicitReplace map[spb.AFTType]bool) (*reconcileOp
dstNIEntries = &aft.RIB{}
dstNIEntries.GetOrCreateAfts()
}
/*if !ok {
// The network instance does not exist in the destination therefore
// all entries are ADDs.
for pfx, e := range srcNIEntries.GetAfts().Ipv4Entry {
id++
op, err := v4Operation(spb.AFTOperation_ADD, srcNI, pfx, id, e)
if err != nil {
return nil, err
}
ops.Add.TopLevel = append(ops.Add.TopLevel, op)
}
for nhgID, e := range srcNIEntries.GetAfts().NextHopGroup {
id++
op, err := nhgOperation(spb.AFTOperation_ADD, srcNI, nhgID, id, e)
if err != nil {
return nil, err
}
ops.Add.NHG = append(ops.Add.NHG, op)
}

for nhID, e := range srcNIEntries.GetAfts().NextHop {
id++
op, err := nhOperation(spb.AFTOperation_ADD, srcNI, nhID, id, e)
if err != nil {
return nil, err
}
ops.Add.NH = append(ops.Add.NH, op)
}
continue
}
*/
// For each AFT:
// * if a key is present in src but not in dst -> generate an ADD
// * if a key is present in src and in dst -> diff, and generate an ADD if the contents differ.
Expand Down

0 comments on commit 9da498f

Please sign in to comment.