Fix subnet residue when resource deletion

Should set resource_id immediately after creating subnet
successful, otherwise the subnet resource will residue
when deletion.

Change-Id: I7974272d6a4b394775d971e2636bd1d4d5b78562
Closes-bug: #1370973
Merge "Fix subnet residue when resource deletion"