From 5f8867a3454164ad20ae427dc9d2c7d65ea00a90 Mon Sep 17 00:00:00 2001 From: Marcel Enguehard Date: Mon, 9 Oct 2017 08:44:59 +0200 Subject: Several fixes related to async_set, ip addressing, and memif interfaces for VPP Change-Id: I26b7928751f41ea66ba47bb1becac33cf5195915 Signed-off-by: Marcel Enguehard --- vicn/resource/icn/central.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vicn/resource/icn/central.py') diff --git a/vicn/resource/icn/central.py b/vicn/resource/icn/central.py index aa8ea357..fd272bf6 100644 --- a/vicn/resource/icn/central.py +++ b/vicn/resource/icn/central.py @@ -81,6 +81,8 @@ class ICNFaces(Resource): def __delete__(self): raise NotImplementedError + def __after__(self): + return ("VPPInterface",) #-------------------------------------------------------------------------- # Internal methods #-------------------------------------------------------------------------- @@ -102,7 +104,11 @@ class ICNFaces(Resource): map_ = data['map_node_interface'] src = self._state.manager.by_uuid(map_[src_node_uuid]) + if src.has_vpp_child: + src = src.vppinterface dst = self._state.manager.by_uuid(map_[dst_node_uuid]) + if dst.has_vpp_child: + dst = dst.vppinterface log.debug('{} -> {} ({} -> {})'.format(src_node_uuid, dst_node_uuid, src.device_name, dst.device_name)) -- cgit 1.2.3-korg