Here is a simpler reproducer with a single file:
cat > /etc/netplan/90-vrf.yaml <<EOF network: vrfs: vrf20: table: 20 routes: - to: 1.2.3.0/24 via: 1.2.3.4 EOF
# netplan get Segmentation fault (core dumped)
The problem is that we try to walk through the list of routing-policies without checking if we have items in the list.
Here is a simpler reproducer with a single file:
cat > /etc/netplan/ 90-vrf. yaml <<EOF
network:
vrfs:
vrf20:
table: 20
routes:
- to: 1.2.3.0/24
via: 1.2.3.4
EOF
# netplan get
Segmentation fault (core dumped)
The problem is that we try to walk through the list of routing-policies without checking if we have items in the list.