Consolidate interface code shared between VM and NETNS
Move constants to config/common

Change-Id: I1f3af3a52cab385f6d1cf9a320086b06bdb2be00