

def get(self, name):
    "Returns a Vxlan interface as a set of key/value pairs\n\n        The Vxlan interface resource returns the following:\n\n            * name (str): The name of the interface\n            * type (str): Always returns 'vxlan'\n            * source_interface (str): The vxlan source-interface value\n            * multicast_group (str): The vxlan multicast-group value\n            * udp_port (int): The vxlan udp-port value\n            * vlans (dict): The vlan to vni mappings\n            * flood_list (list): The list of global VTEP flood list\n\n        Args:\n            name (str): The interface identifier to retrieve from the\n                running-configuration\n\n        Returns:\n            A Python dictionary object of key/value pairs that represents\n                the interface configuration.  If the specified interface\n                does not exist, then None is returned\n        "
    config = self.get_block(('^interface %s' % name))
    if (not config):
        return None
    response = super(VxlanInterface, self).get(name)
    response.update(dict(name=name, type='vxlan'))
    response.update(self._parse_source_interface(config))
    response.update(self._parse_multicast_group(config))
    response.update(self._parse_udp_port(config))
    response.update(self._parse_vlans(config))
    response.update(self._parse_flood_list(config))
    return response

dataset/ETHPy150Open arista-eosplus/pyeapi/pyeapi/api/interfaces.py VxlanInterface.get/original