Actually I was following the way it was done in Interfaces::Base

https://github.com/axsh/openvnet/blob/master/vnet/lib/vnet/openflow/interfaces/base.rb#L11-L24