code: def reset_interface(self):
          
          self.data['interfaces'] = []
          if self.typeof != 'tunnel_interface':
              self.data['vlanInterfaces'] = []
          self.update()
          self.delete_invalid_route()
docs: Reset the interface by removing all assigned addresses and VLANs.
          This will not delete the interface itself, only the sub interfaces that
          may have addresses assigned. This will not affect inline or capture
          interfaces.
          Note that if this interface is used as a primary control, auth request
          or outgoing interface, the update will fail. You should move that
          functionality to another interface before calling this. See also::
          :class:`smc.core.engine.interface_options`.
          
          :raises UpdateElementFailed: failed to update the interfaces. This is
              usually caused when the interface is assigned as a control, outgoing,
              or auth_request interface.
          :return: None