From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petr Vorel Date: Thu, 12 Sep 2019 15:26:59 +0200 Subject: [LTP] [PATCH v4 1/7] tst_net.sh: enhance tst_add_ipaddr(), add tst_del_ipaddr() In-Reply-To: <867402c7-9a38-9646-6936-1eb6988a48b8@oracle.com> References: <20190903141610.28887-1-pvorel@suse.cz> <20190903141610.28887-2-pvorel@suse.cz> <867402c7-9a38-9646-6936-1eb6988a48b8@oracle.com> Message-ID: <20190912132659.GA22246@dell5510> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi Alexey, > Hi Petr, > On 03.09.2019 17:16, Petr Vorel wrote: > > These changes are intended for easier handling with IP addresses > > (not have to calculate dad for IPv6 when adding IP address). > > Add -a IP and -s options to tst_add_ipaddr() > > tst_del_ipaddr() (which uses internally tst_add_ipaddr()) is defined > > mainly for better code readability. > ... > > - tst_res_ TINFO "set remote addr $(tst_ipaddr rhost)/$mask" > > - tst_rhost_run -c "ip addr add $(tst_ipaddr rhost)/$mask dev $iface $dad" > > + tst_res_ TINFO "set remote addr $addr" > ^ > Should be $action here? Sure, thanks! Kind regards, Petr