Update l3 agent with same style as dhcp; make better