switch/generic - Add debug flag support
switch/generic: add node info un/pack and free logoc