pinc icon indicating copy to clipboard operation
pinc copied to clipboard

Determine device profile state from tc output

Open phuedx opened this issue 8 years ago • 1 comments

Currently, the profile service keeps track of state via an internal store. The store is mistakenly referred to as a cache and while there's definitely a write-through mechanism in place, there's no corresponding read from tc when the cache goes stale. Indeed, the "cache" is never considered stale!

It should be fairly easy to parse out the profiles assigned to devices from the output of tc filter show dev <interface>, given that the flow IDs of those profiles are known ahead of time and are mapped easily (see getFlowID in src/server/profiles.js).

phuedx avatar Nov 02 '17 14:11 phuedx

This blocks #12.

phuedx avatar Dec 16 '17 06:12 phuedx