From c0e7a6c03c2677b7f95397ffa6aca61ca6af307e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Thu, 4 Jan 2024 14:31:37 +0100 Subject: [PATCH] OSPF: Add possibility to check status in CLI Use vtysh for now. --- src/klish-plugin-infix/xml/infix.xml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/klish-plugin-infix/xml/infix.xml b/src/klish-plugin-infix/xml/infix.xml index 98b861fe..5fbd4e51 100644 --- a/src/klish-plugin-infix/xml/infix.xml +++ b/src/klish-plugin-infix/xml/infix.xml @@ -283,6 +283,26 @@ + + + + neighbor + interfaces + bfd + + + + if [ -z "$KLISH_PARAM_name" ]; then + vtysh -c "show ip ospf" + elif [ "$KLISH_PARAM_name" == "neighbor" ];then + vtysh -c "show ip ospf neighbor" + elif [ "$KLISH_PARAM_name" == "interfaces" ];then + vtysh -c "show ip ospf interface" + elif [ "$KLISH_PARAM_name" == "bfd" ];then + vtysh -c "show bfd peers" + fi + +