Migrate ShellTable to non-deprecated class 19/70619/5
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 7 Apr 2018 11:16:04 +0000 (13:16 +0200)
committerClaudio David Gasparini <claudio.gasparini@pantheon.tech>
Thu, 26 Apr 2018 09:14:32 +0000 (09:14 +0000)
org.apache.karaf.shell.support.table.ShellTable is the new location,
use that.

Change-Id: I85b6adc2ae01a47236217676f78cce9e0f81237e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
bgp/cli/src/main/java/org/opendaylight/protocol/bgp/cli/utils/GlobalStateCliUtils.java
bgp/cli/src/main/java/org/opendaylight/protocol/bgp/cli/utils/NeighborStateCliUtils.java
bgp/cli/src/main/java/org/opendaylight/protocol/bgp/cli/utils/PeerGroupStateCliUtils.java
bgp/cli/src/test/resources/empty-global.txt
bgp/cli/src/test/resources/empty-neighbor.txt
bgp/cli/src/test/resources/empty-peer-group.txt
bgp/cli/src/test/resources/global.txt
bgp/cli/src/test/resources/neighbor.txt
bgp/cli/src/test/resources/peer-group.txt
pcep/topology/cli/src/main/java/org/opendaylight/protocol/pcep/cli/utils/PcepStateUtils.java
pcep/topology/cli/src/test/resources/node.txt

index c9af2119d822142ee923313f2da59087479716c3..7b2739b04fed949c8770868a6085a4722899435e 100644 (file)
@@ -10,7 +10,7 @@ package org.opendaylight.protocol.bgp.cli.utils;
 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;
index dd2984fb2dbed89bf4478a092cb846614ea3ebd5..12357c2c1b14b8a8a341fe5b4b12aa5777141d10 100644 (file)
@@ -9,7 +9,7 @@ package org.opendaylight.protocol.bgp.cli.utils;
 
 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;
index 3444552d43846493ecf766eed8bb02b82e4e68dc..98efb0d676940a898663e6fd4313f4e653e7c41a 100644 (file)
@@ -11,7 +11,7 @@ import static org.opendaylight.protocol.bgp.cli.utils.NeighborStateCliUtils.addH
 
 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;
index 0e4d21a311ce822d4facc3accad2b1eb4bd17aab..549d50204a6ce15276368892247dfa4717d08d5b 100644 (file)
@@ -1,13 +1,13 @@
-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
index a84a3854db03f3f174aaa949c8bfdfc62db9904e..8f6619ea11e3a36afbd363fbdd5fa764b500c17f 100644 (file)
@@ -1,8 +1,8 @@
-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
index baf419a0a10c771b9acfbf1ec2b35d98d8d9f466..c5a687b353f454280e8ccbc778ea52f824986bb7 100644 (file)
@@ -1,6 +1,6 @@
-Attribute              | Value     
------------------------------------
-                       |           
-Peer Group state       |           
-====================== |           
-Peer Group Name        | test-group
+Attribute              │ Value
+───────────────────────┼───────────
+                       │
+Peer Group state       
+====================== 
+Peer Group Name         test-group
index d3fec82b7042d99cde04463b9e27f5ad1623836d..68d358080353611ea440f92b97211465ad1d57e4 100644 (file)
@@ -1,15 +1,15 @@
-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
index 449e0781a25791892e30e0c8833e5383546c9a09..0a4d8eabb1ad4251359e822c4a2204f847fee0df 100644 (file)
@@ -1,37 +1,37 @@
-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
index 26725a3757b778ca7219118675acd05093b1e6d5..9cc8c0425665faeff1d750e743e6e037fd28b612 100644 (file)
@@ -1,7 +1,7 @@
-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
index ebb590cac0e977a3ac020a27269150d694aed95b..5a12ae60f71a891a73c4dc4980f894ca6dcaa5bd 100644 (file)
@@ -10,7 +10,7 @@ package org.opendaylight.protocol.pcep.cli.utils;
 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;
index d11185c10e2ae94dd81ec3250f591f90ff2a9bb8..826a6f8796cda08c879b16a5f5138696cdf48614 100644 (file)
@@ -1,56 +1,56 @@
-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