]> git.puffer.fish Git - mirror/frr.git/commit
isisd: fix isis_circuit_af_set() on fresh circuit
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 11 Aug 2016 15:02:50 +0000 (17:02 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 16 Aug 2016 14:05:59 +0000 (16:05 +0200)
commit19dd696bda25a595f4e324a9729f27c4d8405e48
treefdfc613996af07b21560a60be8ab6f090e028405
parent9af6011992d8012ca146343be49a8e3df4da3885
isisd: fix isis_circuit_af_set() on fresh circuit

A newly-created circuit will be in enabled state but have neither IPv4
nor IPv6 configured.  The logic in isis_circuit_af_set assumed that
"enabled" is equivalent to "ip || ipv6".

This is the only place where this distinction is currently relevant, as
the CLI won't allow enabling an interface without enabling either IPv4
or IPv6;  and it will also disable a circuit when both are deconfigured.

Reported-by: Martin Winter <mwinter@opensourcerouting.org>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
isisd/isis_circuit.c