summaryrefslogtreecommitdiffstats
path: root/isisd
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2016-08-13 01:32:52 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2016-08-16 16:06:48 +0200
commitab1f20e60797c6dc31eb537b0018ab375c9ce3cd (patch)
tree4070f2010b9148bb0344439cc90e7880f5495e75 /isisd
parentisisd: fix is_type_set (diff)
downloadfrr-ab1f20e60797c6dc31eb537b0018ab375c9ce3cd.tar.xz
frr-ab1f20e60797c6dc31eb537b0018ab375c9ce3cd.zip
isisd: fold up isis_circuit_is_type_set()
see previous commit. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'isisd')
-rw-r--r--isisd/isis_circuit.c7
-rw-r--r--isisd/isis_events.c2
-rw-r--r--isisd/isisd.c2
3 files changed, 2 insertions, 9 deletions
diff --git a/isisd/isis_circuit.c b/isisd/isis_circuit.c
index 300c2cd85..efed42016 100644
--- a/isisd/isis_circuit.c
+++ b/isisd/isis_circuit.c
@@ -1284,13 +1284,6 @@ isis_circuit_passive_set (struct isis_circuit *circuit, bool passive)
return 0;
}
-void
-isis_circuit_is_type_set (struct isis_circuit *circuit, int is_type)
-{
- if (circuit->is_type != is_type)
- isis_event_circuit_type_change (circuit, is_type);
-}
-
int
isis_circuit_metric_set (struct isis_circuit *circuit, int level, int metric)
{
diff --git a/isisd/isis_events.c b/isisd/isis_events.c
index 8fb92fdd3..460b1d25b 100644
--- a/isisd/isis_events.c
+++ b/isisd/isis_events.c
@@ -145,7 +145,7 @@ circuit_resign_level (struct isis_circuit *circuit, int level)
}
void
-isis_event_circuit_type_change (struct isis_circuit *circuit, int newtype)
+isis_circuit_is_type_set (struct isis_circuit *circuit, int newtype)
{
if (circuit->state != C_STATE_UP)
{
diff --git a/isisd/isisd.c b/isisd/isisd.c
index 62c5e2653..0d0b805a2 100644
--- a/isisd/isisd.c
+++ b/isisd/isisd.c
@@ -1775,7 +1775,7 @@ isis_area_is_type_set(struct isis_area *area, int is_type)
if (area->is_type != IS_LEVEL_1_AND_2)
{
for (ALL_LIST_ELEMENTS_RO (area->circuit_list, node, circuit))
- isis_event_circuit_type_change (circuit, is_type);
+ isis_circuit_is_type_set (circuit, is_type);
}
spftree_area_init (area);