add gre id allocation in table when type_gre initialize

Change-Id: I5f70b335224bf57c2db6834cd8c5f71f73d23957