new FibEntry(prefix, nextHops) → {FibEntry}
A Forwarding Entry
Parameters:
Name | Type | Description |
---|---|---|
prefix |
Object | string | the ndn.Name object representing the prefix for this forwarding entry |
nextHops |
Array | an array of nextHop objects, each with a "faceID" integer property, or just an array of the faceIDs |
- Source:
Returns:
- Type
- FibEntry
Methods
-
addNextHop(nextHop) → {FIBEntry}
-
Add a nextHop (will replace if a nextHop with the same faceID exists)
Parameters:
Name Type Description nextHop
Object an object with faceID Number property - Source:
Returns:
- Type
- FIBEntry
-
getNextHops(excludingFaceID) → {Array}
-
get all nextHops, excluding a given faceID
Parameters:
Name Type Argument Description excludingFaceID
Number <optional>
the faceID to exclude - Source:
Returns:
an array of nextHops- Type
- Array
-
removeNextHop(nextHop) → {FIBEntry}
-
Remove a nextHop (will do nothing if a nextHop with the given faceID does not exist)
Parameters:
Name Type Description nextHop
Object an object with faceID Number property - Source:
Returns:
for chaining- Type
- FIBEntry