<?php

namespace App\Modules\Network\Commands;

use App\Helpers\Utility\GoliathBgp;

class GoliathSyncBgp extends \App\Console\Commands\BaseCommand
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'goliath:sync-bgp';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Broadcasts full goliath BGP state.';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return int
     */
    public function handle()
    {
        GoliathBgp::emit_full();

        return 0;
    }
}