]> git.puffer.fish Git - mirror/frr.git/commitdiff
isisd: fix setting IS type in LSPs 9024/head
authorIgor Ryzhov <iryzhov@nfware.com>
Mon, 12 Jul 2021 20:56:50 +0000 (23:56 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 13 Jul 2021 11:49:49 +0000 (14:49 +0300)
IS type in an LSP is a type of the router, not a type of the circuit.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
isisd/isis_lsp.c

index c0b74a9044f4a91d1faf311f11cc3e0cbdefadbf..5c013d634b72ea68fe37f4aa90d6648cd52bc7a7 100644 (file)
@@ -479,7 +479,7 @@ static uint8_t lsp_bits_generate(int level, int overload_bit, int attached_bit,
                                 struct isis_area *area)
 {
        uint8_t lsp_bits = 0;
-       if (level == IS_LEVEL_1)
+       if (area->is_type == IS_LEVEL_1)
                lsp_bits = IS_LEVEL_1;
        else
                lsp_bits = IS_LEVEL_1_AND_2;