summaryrefslogtreecommitdiffstats
path: root/isisd/fabricd.h
diff options
context:
space:
mode:
authorChristian Franke <chris@opensourcerouting.org>2018-05-10 19:05:40 +0200
committerChristian Franke <chris@opensourcerouting.org>2018-09-05 11:38:13 +0200
commit92ed0cdef522c148250186cd3fbdf61cc9789d77 (patch)
treeecdf6679ab3a6f167c53a573ef41babca6a3d01f /isisd/fabricd.h
parentfabricd: Add support for TLV 150 (Spine-Leaf-Extension) (diff)
downloadfrr-92ed0cdef522c148250186cd3fbdf61cc9789d77.tar.xz
frr-92ed0cdef522c148250186cd3fbdf61cc9789d77.zip
fabricd: allow to configure tier-level advertisement
While OpenFabric calculates most tier numbers automatically by the fabric locality calculation algorithm, that algorithm requires two systems to be manually configured as tier 0, so it has reference points. Also, completely manual configuration is possible. To support this, introduce appropriate CLI commands and flood the configured information. Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Diffstat (limited to 'isisd/fabricd.h')
-rw-r--r--isisd/fabricd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/isisd/fabricd.h b/isisd/fabricd.h
index 1707adf36..a6dc97972 100644
--- a/isisd/fabricd.h
+++ b/isisd/fabricd.h
@@ -27,6 +27,7 @@ struct fabricd;
struct isis_circuit;
struct isis_area;
struct isis_spftree;
+struct vty;
struct fabricd *fabricd_new(struct isis_area *area);
void fabricd_finish(struct fabricd *f);
@@ -36,5 +37,8 @@ struct isis_circuit *fabricd_initial_sync_circuit(struct isis_area *area);
void fabricd_initial_sync_finish(struct isis_area *area);
void fabricd_run_spf(struct isis_area *area);
struct isis_spftree *fabricd_spftree(struct isis_area *area);
+void fabricd_configure_tier(struct isis_area *area, uint8_t tier);
+uint8_t fabricd_tier(struct isis_area *area);
+int fabricd_write_settings(struct isis_area *area, struct vty *vty);
#endif