Page MenuHomeVyOS Platform

Move OSPF and RIP interface configuration under protocols
Closed, ResolvedPublic

Description

The configuration of interface specific parameters for ospf and rip are now located inside the physical interface's sub-config inside interfaces

to ease creation of configuration scripts it's necessary to move configuration of any aspect of a services into it's own hierarchy in for this service protocols (osof|rip) sub-config

Configuration today:

`
interfaces {
    ethernet eth0 {
       ip {
            ospf {
                cost 200
                dead-interval 40
                hello-interval 10
                network broadcast
                priority 0
                retransmit-interval 5
                transmit-delay 1
            }
        }
    }
}

The proposed new configuration is: (interface names and parameters are used as example)

protocols {
    ospf {
        interface eth0 {
            address-family ipv4 {
                /* Configuration moved from the interface */ 
                cost 1000
                dead-interval 40
                hello-interval 10
                network point-to-point
                priority 1
                retransmit-interval 5
                transmit-delay 1   
            }
        }
    }
}

To ease configuration there are also questions about if configuration should be allowed on the main interface level, that overrides config inside the address-family that way you do not need to configure cost and intervals separately for ipv4 and ipv6

example:

protocols {
    ospf {
        interface eth0 {
            cost 1000
            dead-interval 40
            hello-interval 10
            network point-to-point
            priority 1
            retransmit-interval 5
            transmit-delay 1   
            address-family ipv4 { }
            address-family ipv6 {
                dead-interval 200
                hello-interval 50
            }
        }
    }
}

This configuration will create all "global" parameters for both ipv4 and ipv, but for ipv6 hello-interval and dead-interval is overrided.

Also, if the protocols ospf interface eth0 tag-node is created without child nodes values are filled by default values or left unconfigured inside frr

For now the process is not started, feel free to comment and if your'e want a mission, just assign yourself the case.

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

runar created this object in space S1 VyOS Public.

As I see in VyOS 1.4-rolling-202102040221 the OSPF interface configuration is already under protocol section. Looks good.
So next up are ospfv3 and rip.

c-po renamed this task from Move ospf and rip interface configuration under protocols to Move OSPF and RIP interface configuration under protocols.Feb 5 2021, 4:23 PM
c-po changed the task status from Open to In progress.
c-po triaged this task as Normal priority.
c-po edited projects, added VyOS 1.4 Sagitta; removed VyOS 1.3 Equuleus.
c-po set Is it a breaking change? to Unspecified (possibly destroys the router).
c-po claimed this task.