Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSPF incorrectly generates useless router lsa after clear ip ospf process #17080

Open
2 tasks done
Shbinging opened this issue Oct 12, 2024 · 0 comments
Open
2 tasks done
Labels
triage Needs further investigation

Comments

@Shbinging
Copy link
Contributor

Description

This question is related to #17079. When we use area range command sets a non-existent area, immediately following the clear ip ospf process, ospf will generate an invalid router LSA corresponding to the area.

Version

10.3

How to reproduce

configure of router r0

router ospf
	ospf router-id 0.0.0.1

interface r0-eth0
	ip address 194.97.141.182/14
	ip ospf area 0.0.0.1

interface r0-eth1
	ip address 204.234.174.128/11
	ip ospf area 0.0.0.0

then, we use commands

router ospf
       area 32.34.40.120 range 204.234.174.128/11 advertise
clear ip ospf process

Expected behavior

The router's LSDB should be

     OSPF Router with ID (0.0.0.1)

                Router Link States (Area 0.0.0.0)

Link ID         ADV Router      Age  Seq#       CkSum  Link count
0.0.0.1        0.0.0.1            5 0x80000002 0x9b1b 1

                Summary Link States (Area 0.0.0.0)

Link ID         ADV Router      Age  Seq#       CkSum  Route
194.96.0.0     0.0.0.1            5 0x80000001 0x55dc 194.96.0.0/14

                Router Link States (Area 0.0.0.1)

Link ID         ADV Router      Age  Seq#       CkSum  Link count
0.0.0.1        0.0.0.1            5 0x80000002 0xa282 1

                Summary Link States (Area 0.0.0.1)

Link ID         ADV Router      Age  Seq#       CkSum  Route
204.224.0.0    0.0.0.1            5 0x80000001 0x5c67 204.224.0.0/11

Actual behavior

Actual behavior

The router's LSDB is actually the above following

                Summary Link States (Area 32.34.40.120)

Link ID         ADV Router      Age  Seq#       CkSum  Route
194.96.0.0     0.0.0.1            2 0x80000001 0x55dc 194.96.0.0/14
204.224.0.0    0.0.0.1            2 0x80000001 0x5c67 204.224.0.0/11

                Router Link States (Area 32.34.40.120)

Link ID         ADV Router      Age  Seq#       CkSum  Link count
0.0.0.1        0.0.0.1            4 0x80000003 0x6eef 0

The router LSA of area 32.34.40.120 is invalid and should not exist.

Additional context

No response

Checklist

  • I have searched the open issues for this bug.
  • I have not included sensitive information in this report.
@Shbinging Shbinging added the triage Needs further investigation label Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Needs further investigation
Projects
None yet
Development

No branches or pull requests

1 participant