summaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2017-05-24 09:41:15 +0200
committerMarek Gradzki <mgradzki@cisco.com>2017-05-24 10:10:10 +0200
commit6bf9fce186a7024e2686396dd2e01d9ed035670e (patch)
tree1aecda3fcf6c23c732374d052cd43473374da7de /lisp
parent7ca39aa6d228dc552097857afc697ddf52bd3ad3 (diff)
Decrease log level in lisp readers (lisp disabled case)
Change-Id: Ibf25ca7998b59d0d918277092e2d1e84e68cd923 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'lisp')
-rw-r--r--lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/ItrRemoteLocatorSetCustomizer.java2
-rwxr-xr-xlisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/LocatorSetCustomizer.java4
-rw-r--r--lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapRegisterCustomizer.java2
-rw-r--r--lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapRequestModeCustomizer.java2
-rwxr-xr-xlisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapResolverCustomizer.java4
-rw-r--r--lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapServerCustomizer.java4
-rw-r--r--lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/PetrCfgCustomizer.java2
-rwxr-xr-xlisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/PitrCfgCustomizer.java2
-rw-r--r--lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/RlocProbeCustomizer.java2
-rwxr-xr-xlisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/VniTableCustomizer.java4
10 files changed, 14 insertions, 14 deletions
diff --git a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/ItrRemoteLocatorSetCustomizer.java b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/ItrRemoteLocatorSetCustomizer.java
index 982d191f6..7be565154 100644
--- a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/ItrRemoteLocatorSetCustomizer.java
+++ b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/ItrRemoteLocatorSetCustomizer.java
@@ -75,7 +75,7 @@ public class ItrRemoteLocatorSetCustomizer extends CheckedLispCustomizer
throws ReadFailedException {
if (!lispStateCheckService.lispEnabled(ctx)) {
- LOG.info("Lisp feature must be enabled first");
+ LOG.debug("Failed to read {}. Lisp feature must be enabled first", id);
return;
}
diff --git a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/LocatorSetCustomizer.java b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/LocatorSetCustomizer.java
index a2957972a..6e97c2c8c 100755
--- a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/LocatorSetCustomizer.java
+++ b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/LocatorSetCustomizer.java
@@ -73,7 +73,7 @@ public class LocatorSetCustomizer extends CheckedLispCustomizer
public void readCurrentAttributes(InstanceIdentifier<LocatorSet> id, LocatorSetBuilder builder, ReadContext ctx)
throws ReadFailedException {
if (!lispStateCheckService.lispEnabled(ctx)) {
- LOG.info("Lisp feature must be enabled first");
+ LOG.debug("Failed to read {}. Lisp feature must be enabled first", id);
return;
}
LOG.debug("Reading attributes for Locator Set {}", id);
@@ -106,7 +106,7 @@ public class LocatorSetCustomizer extends CheckedLispCustomizer
public List<LocatorSetKey> getAllIds(InstanceIdentifier<LocatorSet> id, ReadContext context)
throws ReadFailedException {
if (!lispStateCheckService.lispEnabled(context)) {
- LOG.info("Lisp feature must be enabled first");
+ LOG.debug("Failed to read {}. Lisp feature must be enabled first", id);
return Collections.emptyList();
}
diff --git a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapRegisterCustomizer.java b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapRegisterCustomizer.java
index 393a27e68..12b376a1d 100644
--- a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapRegisterCustomizer.java
+++ b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapRegisterCustomizer.java
@@ -60,7 +60,7 @@ public class MapRegisterCustomizer extends CheckedLispCustomizer
@Nonnull MapRegisterBuilder mapRegisterBuilder,
@Nonnull ReadContext readContext) throws ReadFailedException {
if (!lispStateCheckService.lispEnabled(readContext)) {
- LOG.info("Lisp feature must be enabled first");
+ LOG.debug("Failed to read {}. Lisp feature must be enabled first", instanceIdentifier);
return;
}
diff --git a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapRequestModeCustomizer.java b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapRequestModeCustomizer.java
index ae84015a2..0b04e4c8a 100644
--- a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapRequestModeCustomizer.java
+++ b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapRequestModeCustomizer.java
@@ -59,7 +59,7 @@ public class MapRequestModeCustomizer extends CheckedLispCustomizer
@Nonnull MapRequestModeBuilder mapRequestModeBuilder,
@Nonnull ReadContext readContext) throws ReadFailedException {
if (!lispStateCheckService.lispEnabled(readContext)) {
- LOG.info("Lisp feature must be enabled first");
+ LOG.debug("Failed to read {}. Lisp feature must be enabled first", instanceIdentifier);
return;
}
final ShowOneMapRequestModeReply reply = getReplyForRead(
diff --git a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapResolverCustomizer.java b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapResolverCustomizer.java
index b5614408e..41de38333 100755
--- a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapResolverCustomizer.java
+++ b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapResolverCustomizer.java
@@ -80,7 +80,7 @@ public class MapResolverCustomizer extends CheckedLispCustomizer
public void readCurrentAttributes(InstanceIdentifier<MapResolver> id, MapResolverBuilder builder, ReadContext ctx)
throws ReadFailedException {
if (!lispStateCheckService.lispEnabled(ctx)) {
- LOG.info("Lisp feature must be enabled first");
+ LOG.debug("Failed to read {}. Lisp feature must be enabled first", id);
return;
}
LOG.debug("Reading attributes...");
@@ -115,7 +115,7 @@ public class MapResolverCustomizer extends CheckedLispCustomizer
public List<MapResolverKey> getAllIds(InstanceIdentifier<MapResolver> id, ReadContext context)
throws ReadFailedException {
if (!lispStateCheckService.lispEnabled(context)) {
- LOG.info("Lisp feature must be enabled first");
+ LOG.debug("Failed to read {}. Lisp feature must be enabled first", id);
return Collections.emptyList();
}
LOG.debug("Dumping MapResolver...");
diff --git a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapServerCustomizer.java b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapServerCustomizer.java
index 26e193a98..b1a60db39 100644
--- a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapServerCustomizer.java
+++ b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapServerCustomizer.java
@@ -90,7 +90,7 @@ public class MapServerCustomizer extends CheckedLispCustomizer
public List<MapServerKey> getAllIds(@Nonnull InstanceIdentifier<MapServer> instanceIdentifier,
@Nonnull ReadContext readContext) throws ReadFailedException {
if (!lispStateCheckService.lispEnabled(readContext)) {
- LOG.info("Lisp feature must be enabled first");
+ LOG.debug("Failed to read {}. Lisp feature must be enabled first", instanceIdentifier);
return Collections.emptyList();
}
@@ -123,7 +123,7 @@ public class MapServerCustomizer extends CheckedLispCustomizer
@Nonnull MapServerBuilder mapServerBuilder, @Nonnull ReadContext readContext)
throws ReadFailedException {
if (!lispStateCheckService.lispEnabled(readContext)) {
- LOG.info("Lisp feature must be enabled first");
+ LOG.debug("Failed to read {}. Lisp feature must be enabled first", instanceIdentifier);
return;
}
final Optional<OneMapServerDetailsReplyDump> dump =
diff --git a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/PetrCfgCustomizer.java b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/PetrCfgCustomizer.java
index 4992f0370..406332d3f 100644
--- a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/PetrCfgCustomizer.java
+++ b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/PetrCfgCustomizer.java
@@ -68,7 +68,7 @@ public class PetrCfgCustomizer extends CheckedLispCustomizer
@Nonnull PetrCfgBuilder petrCfgBuilder,
@Nonnull ReadContext readContext) throws ReadFailedException {
if (!lispStateCheckService.lispEnabled(readContext)) {
- LOG.info("Lisp feature must be enabled first");
+ LOG.debug("Failed to read {}. Lisp feature must be enabled first", instanceIdentifier);
return;
}
diff --git a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/PitrCfgCustomizer.java b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/PitrCfgCustomizer.java
index da205da37..3d382f628 100755
--- a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/PitrCfgCustomizer.java
+++ b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/PitrCfgCustomizer.java
@@ -65,7 +65,7 @@ public class PitrCfgCustomizer extends CheckedLispCustomizer
public void readCurrentAttributes(InstanceIdentifier<PitrCfg> id, PitrCfgBuilder builder, ReadContext ctx)
throws ReadFailedException {
if (!lispStateCheckService.lispEnabled(ctx)) {
- LOG.info("Lisp feature must be enabled first");
+ LOG.debug("Failed to read {}. Lisp feature must be enabled first", id);
return;
}
LOG.debug("Reading status for Lisp Pitr node {}", id);
diff --git a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/RlocProbeCustomizer.java b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/RlocProbeCustomizer.java
index f369850ff..16cb14a7c 100644
--- a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/RlocProbeCustomizer.java
+++ b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/RlocProbeCustomizer.java
@@ -60,7 +60,7 @@ public class RlocProbeCustomizer extends CheckedLispCustomizer
@Nonnull RlocProbeBuilder rlocProbeBuilder,
@Nonnull ReadContext readContext) throws ReadFailedException {
if (!lispStateCheckService.lispEnabled(readContext)) {
- LOG.info("Lisp feature must be enabled first");
+ LOG.debug("Failed to read {}. Lisp feature must be enabled first", instanceIdentifier);
return;
}
diff --git a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/VniTableCustomizer.java b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/VniTableCustomizer.java
index 28b5509ae..2247a73b9 100755
--- a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/VniTableCustomizer.java
+++ b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/VniTableCustomizer.java
@@ -93,7 +93,7 @@ public class VniTableCustomizer extends CheckedLispCustomizer
@Nonnull final ReadContext context)
throws ReadFailedException {
if (!lispStateCheckService.lispEnabled(context)) {
- LOG.info("Lisp feature must be enabled first");
+ LOG.debug("Failed to read {}. Lisp feature must be enabled first", id);
return Collections.emptyList();
}
LOG.trace("Reading all IDS...");
@@ -114,7 +114,7 @@ public class VniTableCustomizer extends CheckedLispCustomizer
@Nonnull final VniTableBuilder builder, @Nonnull final ReadContext ctx)
throws ReadFailedException {
if (!lispStateCheckService.lispEnabled(ctx)) {
- LOG.info("Lisp feature must be enabled first");
+ LOG.debug("Failed to read {}. Lisp feature must be enabled first", id);
return;
}