Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing `unicast` option for `show bgp` command #90

marzdgzmn opened this issue Aug 30, 2019 · 0 comments


Copy link

commented Aug 30, 2019

show bgp command for Quagga router is missing the unicast option causing it to return
% Unknown command.

Previous code:

protected function build_commands($command, $parameter) {
$commands = array();
$vtysh = 'vtysh -c "';
switch ($command) {
case 'bgp':
if (match_ipv6($parameter, false)) {
$commands[] = $vtysh.'show bgp ipv6 unicast '.$parameter.'"';
} else if (match_ipv4($parameter, false)) {
$commands[] = $vtysh.'show bgp ipv4 unicast '.$parameter.'"';
} else {
throw new Exception('The parameter is not an IP address.');
. . .

Current code:

@respawner respawner self-assigned this Aug 30, 2019

@respawner respawner added the bug label Aug 30, 2019

@respawner respawner closed this in 801be06 Aug 30, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.