Add logic to add management node to managementnode table and update its grouping