Skip to content

Command track disable is no longer working #825

Description

@levaitamas

Hi!

It seems the track disable command has no effect after commit bc55bb3.

Consider the following snippet:

./bessctl daemon start -- show version \
-- add module Source source0 -- add module Sink sink0 \
-- add connection source0 sink0 \
-- show pipeline \
-- show gatehook \
-- track disable source0 out 0\
-- show pipeline \
-- show gatehook; \
./bessctl daemon stop
Output of bc55bb3:
v0.3.0-625-gbc55bb39
+---------+                  +-------+
| source0 |  :0 1000192 0:   | sink0 |
| Source  | ---------------> | Sink  |
+---------+                  +-------+
Track::track0    source0:0
+---------+                   +-------+
| source0 |  :0 19105344 0:   | sink0 |
| Source  | ----------------> | Sink  |
+---------+                   +-------+
Track::track0    source0:0

Tracking still works, however, it should be disabled.

Output of 9ebc565 (parent of bc55bb3):
v0.3.0-615-g9ebc5651
+---------+                  +-------+
| source0 |  :0 1516672 0:   | sink0 |
| Source  | ---------------> | Sink  |
+---------+                  +-------+
Track            source0:0
+---------+            +-------+
| source0 |  :0 ? 0:   | sink0 |
| Source  | ---------> | Sink  |
+---------+            +-------+
*** Error: There is no active gatehook to show.
  Command failed: show gatehook

Track disable works as desired.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions