]> git.proxmox.com Git - mirror_frr.git/blobdiff - isisd/isis_te.h
Revert "isisd: Add IS-IS-TE support per Area"
[mirror_frr.git] / isisd / isis_te.h
index beb0c1836ff9b58c74529b9204514bed853207d4..e9eff08cd138b8cba5d47f6dc8a44ca3d20f91ee 100644 (file)
@@ -244,10 +244,11 @@ typedef enum _status_t { disable, enable, learn } status_t;
 /* Mode for Inter-AS LSP */ /* TODO: Check how if LSP is flooded in RFC5316 */
 typedef enum _interas_mode_t { off, region, as, emulate } interas_mode_t;
 
-#define IS_MPLS_TE(m)    (m && m->status == enable)
+#define IS_MPLS_TE(m)    (m.status == enable)
+#define IS_CIRCUIT_TE(c) (c->status == enable)
 
-/* Per area MPLS-TE parameters */
-struct mpls_te_area {
+/* Following structure are internal use only. */
+struct isis_mpls_te {
        /* Status of MPLS-TE: enable or disable */
        status_t status;
 
@@ -258,11 +259,15 @@ struct mpls_te_area {
        interas_mode_t inter_as;
        struct in_addr interas_areaid;
 
+       /* Circuit list on which TE are enable */
+       struct list *cir_list;
+
        /* MPLS_TE router ID */
        struct in_addr router_id;
 };
 
-/* Per Circuit MPLS-TE parameters */
+extern struct isis_mpls_te isisMplsTE;
+
 struct mpls_te_circuit {
 
        /* Status of MPLS-TE on this interface */
@@ -313,5 +318,6 @@ uint8_t add_te_subtlvs(uint8_t *, struct mpls_te_circuit *);
 uint8_t build_te_subtlvs(uint8_t *, struct isis_circuit *);
 void isis_link_params_update(struct isis_circuit *, struct interface *);
 void isis_mpls_te_update(struct interface *);
+void isis_mpls_te_config_write_router(struct vty *);
 
 #endif /* _ZEBRA_ISIS_MPLS_TE_H */