Page MenuHomeVyOS Platform

Cannot add ipv6 /70 route
Closed, InvalidPublicBUG

Description

Its not possible to add a ipv6 70 route

vyos@gw# set protocols static route6 2a01:4f9:2a:de4:4::/70 next-hop XX interface eth1

2a01:4f9:2a:de4:4::/70 is an IPv6 host address, not a network address. Did you mean 2a01:4f9:2a:de4::/70?

Value validation failed
Set failed

I used a /70 because i only get a /64 net which i have to split into smaller nets.
It works fine adding the route with the linux route command.

Details

Difficulty level
Easy (less than an hour)
Version
1.2
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

This comment was removed by hagbard.
syncer changed the task status from Open to Needs testing.Aug 31 2019, 12:43 AM
syncer assigned this task to zsdc.
syncer triaged this task as Normal priority.
syncer edited projects, added VyOS 1.3 Equuleus; removed VyOS 1.2 Crux.

It does param "verbose" in the check.
https://github.com/vyos/vyatta-cfg-quagga/blob/current/templates/protocols/static/route6/node.def#L4

root@r1-roll:/home/vyos# ipaddrcheck --verbose --is-ipv6-net 2a01:4f9:2a:de4:4::/70
2a01:4f9:2a:de4:4::/70 is an IPv6 host address, not a network address. Did you mean 2a01:4f9:2a:de4::/70?
root@r1-roll:/home/vyos# 

root@r1-roll:/home/vyos# ipaddrcheck  --is-ipv6-net 2a01:4f9:2a:de4:4::/70
root@r1-roll:/home/vyos#

@Viacheslav --verbose is not the issue, it's only used to output the actual "error".

Using --verbose or not still yields the same exit code -> "1" which is "fail"

The specified prefix range is:

Start Range: 2a01:4f9:2a:de4:0:0:0:0
  End Range: 2a01:4f9:2a:de4:3ff:ffff:ffff:ffff

Thus 2a01:4f9:2a:de4:4::/70 is a host address which is correctly identified and invalid to the CLI as only prefixes should be routed. @danielpo what you really want is set protocols static route6 2a01:4f9:2a:de4::/70 next-hop XX interface eth1

c-po set Is it a breaking change? to Unspecified (possibly destroys the router).