summaryrefslogtreecommitdiff
path: root/isisd/fabricd.c
diff options
context:
space:
mode:
authorharios <hari@niralnetworks.com>2020-06-20 00:34:33 +0530
committerharios <hari@niralnetworks.com>2020-06-24 14:45:06 +0530
commite740f9c1596333ae8e6ac602dabbfc9a9c769d04 (patch)
tree9b7c30cbb3e6bba9827b6eec46f82f8515cac2cd /isisd/fabricd.c
parent8dc1d9258839bb4a709b2b6c667dec9eac0abdae (diff)
ISIS VRF: ISIS Debug structure modifications
1. The "isis->debug" variable dependency on debug logs print is removed. Signed-off-by: harios <hari@niralnetworks.com>
Diffstat (limited to 'isisd/fabricd.c')
-rw-r--r--isisd/fabricd.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/isisd/fabricd.c b/isisd/fabricd.c
index 4a4b25fa1d..e13078a7e8 100644
--- a/isisd/fabricd.c
+++ b/isisd/fabricd.c
@@ -543,7 +543,7 @@ static void move_to_queue(struct isis_lsp *lsp, struct neighbor_entry *n,
if (n->adj && n->adj->circuit == circuit)
return;
- if (isis->debugs & DEBUG_FLOODING) {
+ if (IS_DEBUG_FLOODING) {
zlog_debug("OpenFabric: Adding %s to %s",
print_sys_hostname(n->id),
(type == TX_LSP_NORMAL) ? "RF" : "DNR");
@@ -576,7 +576,7 @@ static void handle_firsthops(struct hash_bucket *bucket, void *arg)
n = neighbor_entry_lookup_list(f->neighbors, vertex->N.id);
if (n) {
- if (isis->debugs & DEBUG_FLOODING) {
+ if (IS_DEBUG_FLOODING) {
zlog_debug("Removing %s from NL as its in the reverse path",
print_sys_hostname(n->id));
}
@@ -585,7 +585,7 @@ static void handle_firsthops(struct hash_bucket *bucket, void *arg)
n = neighbor_entry_lookup_hash(f->neighbors_neighbors, vertex->N.id);
if (n) {
- if (isis->debugs & DEBUG_FLOODING) {
+ if (IS_DEBUG_FLOODING) {
zlog_debug("Removing %s from NN as its in the reverse path",
print_sys_hostname(n->id));
}
@@ -673,7 +673,7 @@ void fabricd_lsp_flood(struct isis_lsp *lsp, struct isis_circuit *circuit)
struct isis_lsp *nlsp = lsp_for_neighbor(f, n);
if (!nlsp || !nlsp->tlvs) {
- if (isis->debugs & DEBUG_FLOODING) {
+ if (IS_DEBUG_FLOODING) {
zlog_debug("Moving %s to DNR as it has no LSP",
print_sys_hostname(n->id));
}
@@ -682,7 +682,7 @@ void fabricd_lsp_flood(struct isis_lsp *lsp, struct isis_circuit *circuit)
continue;
}
- if (isis->debugs & DEBUG_FLOODING) {
+ if (IS_DEBUG_FLOODING) {
zlog_debug("Considering %s from NL...",
print_sys_hostname(n->id));
}
@@ -699,7 +699,7 @@ void fabricd_lsp_flood(struct isis_lsp *lsp, struct isis_circuit *circuit)
er->id);
if (nn) {
- if (isis->debugs & DEBUG_FLOODING) {
+ if (IS_DEBUG_FLOODING) {
zlog_debug("Found neighbor %s in NN, removing it from NN and setting reflood.",
print_sys_hostname(nn->id));
}
@@ -714,7 +714,7 @@ void fabricd_lsp_flood(struct isis_lsp *lsp, struct isis_circuit *circuit)
circuit);
}
- if (isis->debugs & DEBUG_FLOODING) {
+ if (IS_DEBUG_FLOODING) {
zlog_debug("OpenFabric: Flooding algorithm complete.");
}
}