Hi,

I've proposed #586 but I am having some issues to test it.

Summary of the proposed solution:

If we are trying to edit an interface and it doesn't have an active profile then nmstate is going to delete all the profiles related to this interface and create a new one. If it has an active profile then use it.

Issue:

I have tested it manually and it works and also the proposed integration test works when run alone. But the proposed test doesn't work together with the rest of the integration tests because at this point nmstate have created a new active profile.

Any suggestion on how could we test this better?

Thanks,
Fernando.