def pop_fw_local(self, tenant_id, net_id, direc, node_ip):
net = self.get_network(net_id)<EOL>serv_obj = self.get_service_obj(tenant_id)<EOL>serv_obj.update_fw_local_cache(net_id, direc, node_ip)<EOL>if net is not None:<EOL><INDENT>net_dict = self.fill_dcnm_net_info(tenant_id, direc, net.vlan,<EOL>net.segmentation_id)<EOL>serv_obj.store_dcnm_net_dict(net_dict, direc)<EOL><DEDENT>if direc == "<STR_LIT>":<EOL><INDENT>subnet = self.service_in_ip.get_subnet_by_netid(net_id)<EOL><DEDENT>else:<EOL><INDENT>subnet = self.service_out_ip.get_subnet_by_netid(net_id)<EOL><DEDENT>if subnet is not None:<EOL><INDENT>subnet_dict = self.fill_dcnm_subnet_info(<EOL>tenant_id, subnet,<EOL>self.get_start_ip(subnet), self.get_end_ip(subnet),<EOL>self.get_gateway(subnet), self.get_secondary_gateway(subnet),<EOL>direc)<EOL>serv_obj.store_dcnm_subnet_dict(subnet_dict, direc)<EOL><DEDENT>
Populate the local cache.

        Read the Network DB and populate the local cache.
        Read the subnet from the Subnet DB, given the net_id and populate the
        cache.