mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 00:51:24 +03:00
Merge pull request #6704 from andir/fix_vrf_table_identifier
VRF documentation, parameter renames & parsing of RT names
This commit is contained in:
commit
702b64846e
@ -1314,7 +1314,7 @@ Name=vrf-test
|
||||
Kind=vrf
|
||||
|
||||
[VRF]
|
||||
TableId=42</programlisting>
|
||||
Table=42</programlisting>
|
||||
</example>
|
||||
|
||||
<example>
|
||||
|
@ -133,4 +133,5 @@ Bridge.MulticastQuerier, config_parse_tristate, 0,
|
||||
Bridge.MulticastSnooping, config_parse_tristate, 0, offsetof(Bridge, mcast_snooping)
|
||||
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.TableId, config_parse_uint32, 0, offsetof(Vrf, table) /* deprecated */
|
||||
VRF.Table, config_parse_route_table, 0, offsetof(Vrf, table)
|
||||
|
@ -35,7 +35,7 @@ static int netdev_vrf_fill_message_create(NetDev *netdev, Link *link, sd_netlink
|
||||
|
||||
assert(v);
|
||||
|
||||
r = sd_netlink_message_append_u32(m, IFLA_VRF_TABLE, v->table_id);
|
||||
r = sd_netlink_message_append_u32(m, IFLA_VRF_TABLE, v->table);
|
||||
if (r < 0)
|
||||
return log_netdev_error_errno(netdev, r, "Could not append IPLA_VRF_TABLE attribute: %m");
|
||||
|
||||
|
@ -26,7 +26,7 @@ typedef struct Vrf Vrf;
|
||||
struct Vrf {
|
||||
NetDev meta;
|
||||
|
||||
uint32_t table_id;
|
||||
uint32_t table;
|
||||
};
|
||||
|
||||
DEFINE_NETDEV_CAST(VRF, Vrf);
|
||||
|
Loading…
Reference in New Issue
Block a user