diff options
author | Andreas Rammhold <andreas@rammhold.de> | 2016-06-13 01:05:49 +0200 |
---|---|---|
committer | Andreas Rammhold <andreas@rammhold.de> | 2016-06-16 00:25:06 +0200 |
commit | 6cb955c6a18d7e122ca24ca4873343ca41feeb50 (patch) | |
tree | 243885d9635f7d1ced41310932d84a4831a076f8 /src/network/networkd-network.c | |
parent | 20897a0d6ea12bbc08f70146cc7ad4540b65a0fa (diff) |
networkd: vrf: add support for enslaving devices to VRFs
Diffstat (limited to 'src/network/networkd-network.c')
-rw-r--r-- | src/network/networkd-network.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c index 84bdf75b38..2b764d4f24 100644 --- a/src/network/networkd-network.c +++ b/src/network/networkd-network.c @@ -244,8 +244,8 @@ void network_free(Network *network) { strv_free(network->bind_carrier); netdev_unref(network->bridge); - netdev_unref(network->bond); + netdev_unref(network->vrf); HASHMAP_FOREACH(netdev, network->stacked_netdevs, i) { hashmap_remove(network->stacked_netdevs, netdev->ifname); @@ -471,6 +471,10 @@ int config_parse_netdev(const char *unit, network->bond = netdev; break; + case NETDEV_KIND_VRF: + network->vrf = netdev; + + break; case NETDEV_KIND_VLAN: case NETDEV_KIND_MACVLAN: case NETDEV_KIND_MACVTAP: |