What is a Logical Table?

sdkrel edited this page Jan 30, 2018 · 1 revision

Device behavior in SDKLT is defined and controlled by Logical Tables (LT). A logical table provides device independent network level controls.

Logical Table Properties

All Logical Tables have one or more columns and rows.

A column represents a field. Fields provide network level status or control for the device. Most Logical Tables consists of one or more fields.

A row represents an entry. Entries are a collection of fields that have the same index within the table.

Logical tables are mapped to a physical table (TCAM, Hash, Index, Register) that controls a functional area in the device.

Logical tables support standard operations of Insert, Update, Lookup, Delete and Traverse on table rows.

Only a few C APIs are required to operate on Logical Tables.

Basic table attributes

Name

All Logical Tables have unique names, such as VLAN.

Fields

  • A table field (column) is identified by a name that is unique within the table, such as VLAN_ID.

Entries

  • A table entry (row) is a collection of fields which have the same index within the table.
  • Each field is associated with a value and type.
  • Each row is associated with a single unique index.
  • The row index is calculated using the values of one or more key fields.
  • Key fields can be direct indices or can be algorithmically processed (e.g. hashed) to obtain the index.

See example logical table definitions here.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.