NMS-6155: fixed null pointer exception in linkd

Using upsertTemplate to store data
in atinterface table