1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

addons: vrf: moving replacing rtnetlink_api call with the new netlink api

Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
This commit is contained in:
Julien Fortin
2016-06-16 03:39:12 +01:00
parent 3861c72cf6
commit c9b929f97e

View File

@ -368,7 +368,7 @@ class vrf(moduleBase):
else:
master_exists = False
if master_exists:
rtnetlink_api.rtnl_api.link_set(ifacename, "up")
netlink.link_set_updown(ifacename, "up")
elif ifupdownflags.flags.ALL:
self.log_error('vrf %s not around, skipping vrf config'
%(vrfname), ifaceobj)