def get_meta(cls, instance): """Get immutable attributes for bond. :param instance: NodeBondInterface instance :type instance: NodeBondInterface model :returns: dict -- Object of bond attributes """ meta = {} dpdk_drivers = Release.get_supported_dpdk_drivers( instance.node.cluster.release) meta['dpdk'] = { 'available': cls.dpdk_available(instance, dpdk_drivers)} meta['offloading'] = { 'modes': Bond.get_available_offloading_modes(instance) } return meta
def get_meta(cls, instance): """Get immutable attributes for bond. :param instance: NodeBondInterface instance :type instance: NodeBondInterface model :returns: dict -- Object of bond attributes """ meta = {} dpdk_drivers = Release.get_supported_dpdk_drivers( instance.node.cluster.release) meta['dpdk'] = { 'available': cls.dpdk_available(instance, dpdk_drivers) } meta['offloading'] = { 'modes': Bond.get_available_offloading_modes(instance) } return meta