

def add_vtep(self, name, vtep, vlan=None):
    'Adds a new VTEP endpoint to the global or local flood list\n\n        EosVersion:\n            4.13.7M\n\n        Args:\n            name (str): The name of the interface to configure\n            vtep (str): The IP address of the remote VTEP endpoint to add\n            vlan (str): The VLAN ID associated with this VTEP.  If the VLAN\n            keyword is used, then the VTEP is configured as a local flood\n            endpoing\n\n        Returns:\n            True if the command completes successfully\n        '
    if (not vlan):
        cmd = 'vxlan flood vtep add {}'.format(vtep)
    else:
        cmd = 'vxlan vlan {} flood vtep add {}'.format(vlan, vtep)
    return self.configure_interface(name, cmd)

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