Page MenuHomeVyOS Platform

route-map does not support ipv6 peer
Needs testing, Requires assessmentPublicBUG

Description

VyOS 1.3 does not support matching an ipv6 peer even though, FRR 7.5.1 (which is bundled with VyOS 1.3) supports it:

Working example accessing FRR directly through vtysh:

route-map test permit 1
 match peer fe80::2

Error from VyOS configuration:

# set policy route-map test rule 1 match peer fe80::2

  peer must be either an IP or local
  Value validation failed
  Set failed

I believe the change is a matter of adding an ipv6-address validator to https://github.com/vyos/vyos-1x/blob/current/interface-definitions/policy.xml.in#L957

Details

Difficulty level
Easy (less than an hour)
Version
1.3.1-S1 , 1.4
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Improvement (missing useful functionality)

Event Timeline

n.fort changed the task status from Open to In progress.Jun 21 2022, 5:43 PM
n.fort added a project: VyOS 1.4 Sagitta.
n.fort changed Version from 1.3.1-S1 to 1.3.1-S1 , 1.4.
Viacheslav changed the task status from In progress to Needs testing.Jun 28 2022, 3:20 PM

Modyfing file pointed by @Viacheslav , makes ipv6 peer option available.
But while testing config, it's not possible to insert an ipv6 address: validator rejects input.
Validator used: syntax:expression: exec "/opt/vyatta/sbin/vyatta-policy.pl --check-peer-syntax $VAR(@)"; "peer must be either an IP or local"

That validator can be found here: https://github.com/vyos/vyatta-cfg-quagga/blob/d4097690c40f619bc0e78a0d674985f7880a19a3/scripts/policy/vyatta-policy.pl#L42-L49, but it only validates ipv4 address

n.fort added a subscriber: n.fort.