]> git.proxmox.com Git - mirror_ifupdown2.git/commit
addons: addressvirtual: if device is VRF slave check vrf route table
authorJulien Fortin <julien@cumulusnetworks.com>
Fri, 15 Jun 2018 15:59:19 +0000 (17:59 +0200)
committerJulien Fortin <julien@cumulusnetworks.com>
Thu, 13 Dec 2018 22:42:35 +0000 (14:42 -0800)
commitaa895ecddfef7fe0de582f07a86168811fe6284a
tree84a1c43456b7602c6e5abc1bb443a9943e6b87af
parentdb61a1a8a01a750775a5c3506d02c13633461f3d
addons: addressvirtual: if device is VRF slave check vrf route table

auto bridge
iface bridge
      bridge-vlan-aware yes
      bridge-ports swp2

auto bridge.2
iface bridge.2
      address 10.254.1.2/24
      address 2a03:25e0:254:1::2/64
      address-virtual 00:00:5e:00:01:01 10.254.1.1/24 2a03:25e0:254:1::1/64 fe80::1/64
      vrf blue

auto blue
iface blue
      vrf-table auto

$ ifreload -a -v
...
info: executing /bin/ip route get 10.254.1.0/24 vrf blue
...
$

Reviewed-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
ifupdown2/addons/addressvirtual.py
ifupdown2/ifupdownaddons/LinkUtils.py