Comment 2 for bug 2031421

Revision history for this message
Lukas Märdian (slyon) wrote :

This seems to be an intentional change on the side of NetworkManager. So yes, we should adopt Netplan accordingly.

I wonder if a simple patch like this will already do the trick?
```diff
diff --git a/src/parse.c b/src/parse.c
index b930b750..a1730e51 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -2864,6 +2864,7 @@ static const mapping_entry_handler vlan_def_handlers[] = {
 };

 static const mapping_entry_handler vrf_def_handlers[] = {
+ COMMON_LINK_HANDLERS,
     COMMON_BACKEND_HANDLERS,
     {"renderer", YAML_SCALAR_NODE, {.generic=handle_netdef_renderer}, NULL},
     {"interfaces", YAML_SEQUENCE_NODE, {.generic=handle_vrf_interfaces}, NULL},
diff --git a/tests/integration/routing.py b/tests/integration/routing.py
index f29b012b..f63be36f 100644
--- a/tests/integration/routing.py
+++ b/tests/integration/routing.py
@@ -295,6 +295,7 @@ class _CommonTests():
         table: 1000
   vrfs:
     vrf0:
+ addresses: [10.10.10.20/24]
       table: 1000
       interfaces: [%(ec)s]
       routes:
```