networkd: Add `VRF.Table` to support parsing of table names
authorAndreas Rammhold <andreas@rammhold.de>
Wed, 30 Aug 2017 23:11:16 +0000 (01:11 +0200)
committerAndreas Rammhold <andreas@rammhold.de>
Wed, 30 Aug 2017 23:11:16 +0000 (01:11 +0200)
Previously there was only `VRF.TableId` which only supported numeric
identifiers for routing table. With the additiona of
`config_parse_route_table` also names can be used as identifiers.

src/network/netdev/netdev-gperf.gperf

index 8b235a4..2a9bf2b 100644 (file)
@@ -134,3 +134,4 @@ Bridge.MulticastSnooping,    config_parse_tristate,                0,
 Bridge.VLANFiltering,        config_parse_tristate,                0,                             offsetof(Bridge, vlan_filtering)
 Bridge.STP,                  config_parse_tristate,                0,                             offsetof(Bridge, stp)
 VRF.TableId,                 config_parse_uint32,                  0,                             offsetof(Vrf, table_id)
+VRF.Table,                   config_parse_route_table,             0,                             offsetof(Vrf, table_id)