An £11m coastal defence scheme has been designed to help protect east Cardiff from flooding - including a travellers site which now could be there to stay.