Switch ip addr add/del/flush commands to use pyroute2
This patch replaces usage of "ip addr add/del/flush" commands
with pyroute2 library.
This also switches from rootwrap to privsep when doing those
actions.
This patch adds also UT for _run_iproute_neigh/addr functions
from privileged module.
Change-Id: I6f4df391ec1899f8a4b10b50735dc9a79fa8483f
Related-Bug: #1492714
(cherry picked from commit e0223edf88abc8c1bb8714121a0df8a9997c7a30)
Reviewed: https:/ /review. opendev. org/721617 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=3f7ff45e732 74cad81294daff5 648b6d834e349c
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 3f7ff45e73274ca d81294daff5648b 6d834e349c
Author: Sławek Kapłoński <email address hidden>
Date: Fri Feb 16 15:27:26 2018 +0100
Switch ip addr add/del/flush commands to use pyroute2
This patch replaces usage of "ip addr add/del/flush" commands
with pyroute2 library.
This also switches from rootwrap to privsep when doing those
actions.
This patch adds also UT for _run_iproute_ neigh/addr functions
from privileged module.
Change-Id: I6f4df391ec1899 f8a4b10b50735dc 9a79fa8483f 1bb8714121a0df8 a9997c7a30)
Related-Bug: #1492714
(cherry picked from commit e0223edf88abc8c