summaryrefslogtreecommitdiff
path: root/isisd/isis_circuit.h
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-10-30 03:15:24 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-10-30 03:17:49 +0300
commit2f9a06f0600b6d1c6f28117bb2846ce3675fc129 (patch)
tree86b32a67b482bc9f1157c98c2b194c6f209604f7 /isisd/isis_circuit.h
parent6b1801a499d184cb21f3991f380f480fe10f5856 (diff)
isisd: fix circuit is-type configuration
Currently, we have a lot of checks in CLI and NB layer to prevent incompatible IS-types of circuits and areas. All these checks become completely meaningless when the interface is moved between VRFs. If the area IS-type is different in the new VRF, previously done checks mean nothing and we still end up with incorrect circuit IS type. To actually prevent incorrect IS type, all checks must be done in the processing code. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'isisd/isis_circuit.h')
-rw-r--r--isisd/isis_circuit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/isisd/isis_circuit.h b/isisd/isis_circuit.h
index e7b7a2434d..e286194d3e 100644
--- a/isisd/isis_circuit.h
+++ b/isisd/isis_circuit.h
@@ -122,6 +122,7 @@ struct isis_circuit {
*/
char *tag; /* area tag */
struct isis_passwd passwd; /* Circuit rx/tx password */
+ int is_type_config; /* configured circuit is type */
int is_type; /* circuit is type == level of circuit
* differentiated from circuit type (media) */
uint32_t hello_interval[ISIS_LEVELS]; /* hello-interval in seconds */