import static org.opendaylight.protocol.bgp.cli.utils.NeighborStateCliUtils.addHeader;
import java.io.PrintStream;
-import org.apache.karaf.shell.table.ShellTable;
+import org.apache.karaf.shell.support.table.ShellTable;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.multiprotocol.rev151009.bgp.common.afi.safi.list.AfiSafi;
import org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.rev151009.bgp.global.base.State;
import java.io.PrintStream;
import java.util.List;
-import org.apache.karaf.shell.table.ShellTable;
+import org.apache.karaf.shell.support.table.ShellTable;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.multiprotocol.rev151009.bgp.common.afi.safi.list.AfiSafi;
import org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.operational.rev151009.bgp.neighbor.prefix.counters_state.Prefixes;
import java.io.PrintStream;
import java.util.List;
-import org.apache.karaf.shell.table.ShellTable;
+import org.apache.karaf.shell.support.table.ShellTable;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.rev151009.bgp.neighbor.group.State;
import org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.rev151009.bgp.peer.group.PeerGroup;
-Attribute | Value
----------------------------------------------
- |
-RIB state |
-====================== |
-Router Id | test-rib
-As | AsNumber{_value=100}
-Total Paths | 1
-Total Prefixes | 2
- |
-AFI/SAFI state |
-====================== |
-Family | IPV4UNICAST
+Attribute │ Value
+───────────────────────┼─────────────────────
+ │
+RIB state │
+====================== │
+Router Id │ test-rib
+As │ AsNumber{_value=100}
+Total Paths │ 1
+Total Prefixes │ 2
+ │
+AFI/SAFI state │
+====================== │
+Family │ IPV4UNICAST
-Attribute | Value
-------------------------------------
-Neighbor Address | 127.0.0.2
- |
-AFI state |
-====================== |
-Family | IPV4UNICAST
-Active | false
+Attribute │ Value
+───────────────────────┼────────────
+Neighbor Address │ 127.0.0.2
+ │
+AFI state │
+====================== │
+Family │ IPV4UNICAST
+Active │ false
-Attribute | Value
------------------------------------
- |
-Peer Group state |
-====================== |
-Peer Group Name | test-group
+Attribute │ Value
+───────────────────────┼───────────
+ │
+Peer Group state │
+====================== │
+Peer Group Name │ test-group
-Attribute | Value
----------------------------------------------
- |
-RIB state |
-====================== |
-Router Id | test-rib
-As | AsNumber{_value=100}
-Total Paths | 1
-Total Prefixes | 2
- |
-AFI/SAFI state |
-====================== |
-Family | IPV4UNICAST
-Total Paths | 3
-Total Prefixes | 4
+Attribute │ Value
+───────────────────────┼─────────────────────
+ │
+RIB state │
+====================== │
+Router Id │ test-rib
+As │ AsNumber{_value=100}
+Total Paths │ 1
+Total Prefixes │ 2
+ │
+AFI/SAFI state │
+====================== │
+Family │ IPV4UNICAST
+Total Paths │ 3
+Total Prefixes │ 4
-Attribute | Value
-------------------------------------
-Neighbor Address | 127.0.0.2
-Session State | ACTIVE
- |
-Supported Capabilities |
-====================== |
- | ADDPATHS
- |
-Timer state |
-====================== |
-Negotiated Hold Time | 10
-Uptime | 600
- |
-Transport state |
-====================== |
-Remote Address | 127.0.0.2
-Remote Port | 4321
-Local Port | 1234
- |
-Messages state |
-====================== |
-Messages Received |
-NOTIFICATION | 1
-UPDATE | 10
-Messages Sent |
-NOTIFICATION | 10
-UPDATE | 1
- |
-AFI state |
-====================== |
-Family | IPV4UNICAST
-Active | true
-Prefixes |
-Installed | 1
-Sent | 2
-Received | 1
+Attribute │ Value
+───────────────────────┼────────────
+Neighbor Address │ 127.0.0.2
+Session State │ ACTIVE
+ │
+Supported Capabilities │
+====================== │
+ │ ADDPATHS
+ │
+Timer state │
+====================== │
+Negotiated Hold Time │ 10
+Uptime │ 600
+ │
+Transport state │
+====================== │
+Remote Address │ 127.0.0.2
+Remote Port │ 4321
+Local Port │ 1234
+ │
+Messages state │
+====================== │
+Messages Received │
+NOTIFICATION │ 1
+UPDATE │ 10
+Messages Sent │
+NOTIFICATION │ 10
+UPDATE │ 1
+ │
+AFI state │
+====================== │
+Family │ IPV4UNICAST
+Active │ true
+Prefixes │
+Installed │ 1
+Sent │ 2
+Received │ 1
-Attribute | Value
------------------------------------
- |
-Peer Group state |
-====================== |
-Peer Group Name | test-group
-Total Prefixes | 1
+Attribute │ Value
+───────────────────────┼───────────
+ │
+Peer Group state │
+====================== │
+Peer Group Name │ test-group
+Total Prefixes │ 1
import java.io.PrintStream;
import java.util.Arrays;
import java.util.concurrent.ExecutionException;
-import org.apache.karaf.shell.table.ShellTable;
+import org.apache.karaf.shell.support.table.ShellTable;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.controller.md.sal.binding.api.DataBroker;
import org.opendaylight.controller.md.sal.binding.api.ReadOnlyTransaction;
-Attribute | Value
-------------------------------------------------
- |
-Node state |
-====================== |
-Topology Id | pcep-topology
-Node Id | pcc://127.0.0.1
-Session duration | 0:00:01:26
-Synchronized | true
-Delegated Lsp Count | 1
- |
-Local preferences |
-====================== |
-Session id | 0
-Ip Address | 127.0.0.1
-Dead Timer | 120
-Keep Alive | 30
-Speaker Entity Identifier | [1, 2, 3, 4]
- |
-Peer preferences |
-====================== |
-Session id | 0
-Ip Address | 127.0.0.1
-Dead Timer | 120
-Keep Alive | 30
- |
-Stateful Capabilities |
-====================== |
-Stateful | true
-Active | true
-Instantiation | true
- |
-Messages |
-====================== |
-Last Sent Msg Timestamp | 1512043828
-Received Msg Count | 4
-Sent Msg Count | 5
-Unknown Msg Received | 1
- |
- Stateful Messages |
-====================== |
-Last Received RptMsg Timestamp | 1512043769
-Received RptMsg | 2
-Sent Init Msg | 3
-Sent Upd Msg | 1
- |
-Error Messages |
-====================== |
-Sent Error Msg Count | 2
-Received Error Msg Count | 1
- |
-Reply Messages |
-====================== |
-Average Time | 1
-Max Timet | 3
-Min Time | 2
+Attribute │ Value
+───────────────────────────────┼────────────────
+ │
+Node state │
+====================== │
+Topology Id │ pcep-topology
+Node Id │ pcc://127.0.0.1
+Session duration │ 0:00:01:26
+Synchronized │ true
+Delegated Lsp Count │ 1
+ │
+Local preferences │
+====================== │
+Session id │ 0
+Ip Address │ 127.0.0.1
+Dead Timer │ 120
+Keep Alive │ 30
+Speaker Entity Identifier │ [1, 2, 3, 4]
+ │
+Peer preferences │
+====================== │
+Session id │ 0
+Ip Address │ 127.0.0.1
+Dead Timer │ 120
+Keep Alive │ 30
+ │
+Stateful Capabilities │
+====================== │
+Stateful │ true
+Active │ true
+Instantiation │ true
+ │
+Messages │
+====================== │
+Last Sent Msg Timestamp │ 1512043828
+Received Msg Count │ 4
+Sent Msg Count │ 5
+Unknown Msg Received │ 1
+ │
+ Stateful Messages │
+====================== │
+Last Received RptMsg Timestamp │ 1512043769
+Received RptMsg │ 2
+Sent Init Msg │ 3
+Sent Upd Msg │ 1
+ │
+Error Messages │
+====================== │
+Sent Error Msg Count │ 2
+Received Error Msg Count │ 1
+ │
+Reply Messages │
+====================== │
+Average Time │ 1
+Max Timet │ 3
+Min Time │ 2