summaryrefslogtreecommitdiffstats
path: root/isisd/isis_circuit.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2016-07-29 16:19:40 +0200
committerDonald Sharp <sharpd@cumulusnetwroks.com>2016-07-28 17:08:48 +0200
commit65f9a9a8f588cf4bc3f685ab23dd07e2d0464875 (patch)
tree99350f2b2f973e1016fc1bb27346578b8092e382 /isisd/isis_circuit.h
parent*: get rid of "MTYPE 0" (diff)
downloadfrr-65f9a9a8f588cf4bc3f685ab23dd07e2d0464875.tar.xz
frr-65f9a9a8f588cf4bc3f685ab23dd07e2d0464875.zip
isisd: API: basic circuit config
Create isis_vty.c and start moving off CLI functions into that. These then call newly-added "nice" API wrappers. Patch contains significant work authored by Christian Franke. [v2: removed stuff that crept in from the next patch] Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'isisd/isis_circuit.h')
-rw-r--r--isisd/isis_circuit.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/isisd/isis_circuit.h b/isisd/isis_circuit.h
index d88387973..cd6420262 100644
--- a/isisd/isis_circuit.h
+++ b/isisd/isis_circuit.h
@@ -24,6 +24,10 @@
#define ISIS_CIRCUIT_H
#include "vty.h"
+#include "if.h"
+
+#include "isis_constants.h"
+#include "isis_common.h"
#define CIRCUIT_MAX 255
@@ -167,4 +171,12 @@ void isis_circuit_print_vty (struct isis_circuit *circuit, struct vty *vty,
size_t isis_circuit_pdu_size(struct isis_circuit *circuit);
void isis_circuit_stream(struct isis_circuit *circuit, struct stream **stream);
+struct isis_circuit *isis_circuit_create (struct isis_area *area, struct interface *ifp);
+void isis_circuit_af_set (struct isis_circuit *circuit, bool ip_router, bool ipv6_router);
+int isis_circuit_passive_set (struct isis_circuit *circuit, bool passive);
+void isis_circuit_is_type_set (struct isis_circuit *circuit, int is_type);
+int isis_circuit_circ_type_set (struct isis_circuit *circuit, int circ_type);
+
+int isis_circuit_metric_set (struct isis_circuit *circuit, int level, int metric);
+
#endif /* _ZEBRA_ISIS_CIRCUIT_H */