Landlord: Replacing dead pet violates lease

Is such a contract clause legal?

The premier event for luxury agents and brokers
Luxury Connect | Oct. 16-18 | Beverly Hills