Page MenuHomeVyOS Platform

OSPF database filtering issue
Closed, ResolvedPublicBUG

Description

The command show ip ospf database <router|network|summary|etc.> x.x.x.x does not filter by link-state-id.
The output of the show ip ospf database router 10.0.13.1 in VyOS. The output looks like result of show ip ospf database router command.


As you can see the same command output on the same node in vtysh

VyOS did not filter the output by link-state-id. The same problem with other LSA types.

Details

Difficulty level
Normal (likely a few hours)
Version
VyOS 1.3-rolling-202101040217
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible

Event Timeline

Viacheslav changed the task status from Open to Confirmed.Sat, Jan 9, 6:29 PM
Viacheslav claimed this task.

PR https://github.com/vyos/vyos-1x/pull/675

vyos@r5-roll:~$ show ip ospf database network 10.0.0.1

       OSPF Router with ID (192.168.122.15)

                Net Link States (Area 0.0.0.0)

  LS age: 1707
  Options: 0x2  : *|-|-|-|-|-|E|-
  LS Flags: 0x3  
  LS Type: network-LSA
  Link State ID: 10.0.0.1 (address of Designated Router)
  Advertising Router: 192.168.122.15
  LS Seq Number: 80000002
  Checksum: 0xb3c4
  Length: 32

  Network Mask: /24
        Attached Router: 192.168.122.15
        Attached Router: 192.168.122.12

vyos@r5-roll:~$
vyos@r5-roll:~$ show ip ospf database network 100.64.0.1

       OSPF Router with ID (192.168.122.15)

                Net Link States (Area 0.0.0.0)

  LS age: 99
  Options: 0x2  : *|-|-|-|-|-|E|-
  LS Flags: 0x3  
  LS Type: network-LSA
  Link State ID: 100.64.0.1 (address of Designated Router)
  Advertising Router: 192.168.122.15
  LS Seq Number: 80000003
  Checksum: 0x18c4
  Length: 32

  Network Mask: /24
        Attached Router: 192.168.122.15
        Attached Router: 192.168.122.12

vyos@r5-roll:~$

@craterman Will be fixed in the next rolling release, can you check it tomorrow?

Viacheslav changed the task status from Confirmed to Needs testing.Sun, Jan 10, 10:43 AM

It works fine for show ip ospf database router x.x.x.x and show ip ospf database network x.x.x.x
It does not work for show ip ospf database <summary|asbr-summary|external> x.x.x.x
The output of these commands is empty.

@craterman

external works for me, can you re-check?

vyos@r5-roll:~$ show ip ospf database external 10.20.40.0

       OSPF Router with ID (192.168.122.15)

                AS External Link States 

  LS age: 227
  Options: 0x2  : *|-|-|-|-|-|E|-
  LS Flags: 0x6  
  LS Type: AS-external-LSA
  Link State ID: 10.20.40.0 (External Network Number)
  Advertising Router: 192.168.122.22
  LS Seq Number: 80000001
  Checksum: 0x94e9
  Length: 36

  Network Mask: /24
        Metric Type: 2 (Larger than any link state path)
        TOS: 0
        Metric: 20
        Forward Address: 0.0.0.0
        External Route Tag: 0

vyos@r5-roll:~$

It seems FRR doesn't show anything for "summary and asbr-summary"

r5-roll# show ip ospf database summary 

       OSPF Router with ID (192.168.122.15)


                Summary Link States (Area 0.0.0.0)

r5-roll# show ip ospf database asbr-summary 

       OSPF Router with ID (192.168.122.15)


                ASBR-Summary Link States (Area 0.0.0.0)

r5-roll#

Thank you.

I have just re-checked. It works fine for everyone LSAs type.
summary and asbr-summary also works fine

This comment was removed by Viacheslav.