mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
Merge branch 'master-next' into python3
* master-next: Add XFRM to IFLA_INFO_KIND and reverse change to iproute2 class. This patch fixes the XFRM addon for ifupdown2 version 2. The nlpacket for XFRM had a bug, I also changed iproute2 to add the XFRM interface to the local cache after creation. Since XFRM has no IFLA_LINKINFO I made the argument optional. Otherwise no further operation will be done like adding an IP.
This commit is contained in:
@@ -333,9 +333,9 @@ class IPRoute2(Cache, Requirements):
|
||||
|
||||
###
|
||||
|
||||
@staticmethod
|
||||
def link_add_xfrm(ifname, xfrm_name, xfrm_id):
|
||||
def link_add_xfrm(self, ifname, xfrm_name, xfrm_id):
|
||||
utils.exec_commandl(['ip', 'link', 'add', xfrm_name, 'type', 'xfrm', 'dev', ifname, 'if_id', xfrm_id])
|
||||
self.__update_cache_after_link_creation(xfrm_name, "xfrm")
|
||||
|
||||
############################################################################
|
||||
# TUNNEL
|
||||
|
Reference in New Issue
Block a user