<?php $__currentLoopData = $peers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $peer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
function prefix_list_<?php echo e($peer['asn']); ?>_v4_<?php echo e($peer['id']); ?>()
{
    return net ~ [
    <?php $__currentLoopData = $peer['routes_4']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <?php echo e($item); ?><?php echo e(!$loop->last ? ',' : ''); ?>

    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    ];
}

function prefix_list_<?php echo e($peer['asn']); ?>_v6_<?php echo e($peer['id']); ?>()
{
    return net ~ [
    <?php $__currentLoopData = $peer['routes_6']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <?php echo e($item); ?><?php echo e(!$loop->last ? ',' : ''); ?>

    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    ];
}

protocol bgp peer_<?php echo e($peer['asn']); ?>_v4_<?php echo e($peer['id']); ?> from <?php echo e($peer['stance']); ?> {
    neighbor <?php echo e($peer['endpoint_4']); ?> as <?php echo e($peer['asn']); ?>;
    multihop;
    ipv4 {
        import keep filtered;
        import filter {
            if !prefix_list_<?php echo e($peer['asn']); ?>_v4_<?php echo e($peer['id']); ?>() then reject;
            bgp_local_pref = 999;
            bgp_path.prepend(<?php echo e($peer['asn']); ?>);
            bgp_community.add((7578, 99));
            accept;
        };
        export where <?php echo e($peer['full'] ? 'export_full_tables();' : 'export_default_only();'); ?>

        next hop self;
    };
}

protocol bgp peer_<?php echo e($peer['asn']); ?>_v6_<?php echo e($peer['id']); ?> from <?php echo e($peer['stance']); ?> {
    neighbor <?php echo e($peer['endpoint_6']); ?> as <?php echo e($peer['asn']); ?>;
    multihop;
    ipv6 {
        import keep filtered;
        import filter {
            if !prefix_list_<?php echo e($peer['asn']); ?>_v6_<?php echo e($peer['id']); ?>() then reject;
            bgp_local_pref = 999;
            bgp_path.prepend(<?php echo e($peer['asn']); ?>);
            bgp_community.add((7578, 99));
            accept;
        };
        export where <?php echo e($peer['full'] ? 'export_full_tables();' : 'export_default_only();'); ?>

        next hop self;
    };
}

<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php /**PATH /var/www/html/creatia-refactor/resources/views/config/mercury_bird.blade.php ENDPATH**/ ?>