Skip to content

Commit

Permalink
CLI: OSPF: Add database and routes as show ospf subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiaswal committed Jan 29, 2024
1 parent 051658d commit 6d0f666
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/klish-plugin-infix/xml/infix.xml
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@
<COMPL>
<ACTION sym="printl">neighbor</ACTION>
<ACTION sym="printl">interfaces</ACTION>
<ACTION sym="printl">routes</ACTION>
<ACTION sym="printl">database</ACTION>
<ACTION sym="printl">bfd</ACTION>
</COMPL>
</PARAM>
Expand All @@ -298,6 +300,10 @@
vtysh -c "show ip ospf neighbor"
elif [ "$KLISH_PARAM_name" == "interfaces" ];then
vtysh -c "show ip ospf interface"
elif [ "$KLISH_PARAM_name" == "routes" ];then
vtysh -c "show ip ospf route"
elif [ "$KLISH_PARAM_name" == "database" ];then
vtysh -c "show ip ospf database"
elif [ "$KLISH_PARAM_name" == "bfd" ];then
vtysh -c "show bfd peers"
fi
Expand Down

0 comments on commit 6d0f666

Please sign in to comment.