tep:show-state on karaf console
Change-Id: I59469c0c1da10d55c2bd5d1a9f87e3021c8a46cf
Signed-off-by: Edwin Anthony <n.edwin.anthony@ericsson.com>
if (session != null) {
if (flag) {
for (String p : result) {
if (session != null) {
if (flag) {
for (String p : result) {
- session.getConsole().println(p);
- session.getConsole().println("No teps to display");
+ System.out.println("No teps to display");
}
}
} else if(session != null){
}
}
} else if(session != null){
- session.getConsole().println("No teps configured");
+ System.out.println("No teps configured");
}
}
String displayFormat = "%-16s %-16s %-16s %-16s %-16s %-10s %-10s";
}
}
String displayFormat = "%-16s %-16s %-16s %-16s %-16s %-10s %-10s";
- session.getConsole().println(String.format(displayFormat, "Tunnel Name", "Source-DPN",
+ System.out.println(String.format(displayFormat, "Tunnel Name", "Source-DPN",
"Destination-DPN", "Source-IP", "Destination-IP", "Trunk-State", "Transport Type"));
"Destination-DPN", "Source-IP", "Destination-IP", "Trunk-State", "Transport Type"));
- session.getConsole().println("-------------------------------------------------------------------------------------------------------------------------------------");
+ System.out.println("-------------------------------------------------------------------------------------------------------------------------------------");
for (StateTunnelList tunnelInst : tunnelLists) {
// Display only the internal tunnels
for (StateTunnelList tunnelInst : tunnelLists) {
// Display only the internal tunnels
tunnelType = ITMConstants.TUNNEL_TYPE_GRE ;
else if (tunType.equals(TunnelTypeMplsOverGre.class))
tunnelType = ITMConstants.TUNNEL_TYPE_MPLSoGRE;
tunnelType = ITMConstants.TUNNEL_TYPE_GRE ;
else if (tunType.equals(TunnelTypeMplsOverGre.class))
tunnelType = ITMConstants.TUNNEL_TYPE_MPLSoGRE;
- session.getConsole().println(String.format(displayFormat, tunnelInst.getTunnelInterfaceName(), tunnelInst.getSrcInfo().getTepDeviceId(),
+ System.out.println(String.format(displayFormat, tunnelInst.getTunnelInterfaceName(), tunnelInst.getSrcInfo().getTepDeviceId(),
tunnelInst.getDstInfo().getTepDeviceId(), tunnelInst.getSrcInfo().getTepIp().getIpv4Address().getValue(), tunnelInst.getDstInfo().getTepIp().getIpv4Address().getValue(), tunnelState,
tunnelType));
tunnelInst.getDstInfo().getTepDeviceId(), tunnelInst.getSrcInfo().getTepIp().getIpv4Address().getValue(), tunnelInst.getDstInfo().getTepIp().getIpv4Address().getValue(), tunnelState,
tunnelType));