def _sync_create_subnets(self, combined_res_info, vsm_ip):
        (vsm_subnet_uuids, neutron_subnets) = combined_res_info
        missing_subnets = [subnet for subnet in neutron_subnets if subnet[
            'id'] not in vsm_subnet_uuids]
        for subnet in missing_subnets:
            try:
                self.n1kvclient.create_ip_pool(subnet, vsm_ip=vsm_ip)
            except (n1kv_exc.VSMError, n1kv_exc.VSMConnectionFailed):
                LOG.warning(_LW('Sync Exception: Subnet create failed for '
                                '%s.') % subnet['id'])
Sync subnets by creating missing ones on VSM.
dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/plugins/ml2/drivers/cisco/n1kv/n1kv_sync.py/N1kvSyncDriver._sync_create_subnets