2521N/A# vim: tabstop=4 shiftwidth=4 softtabstop=4 5577N/A# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. 2521N/A# Licensed under the Apache License, Version 2.0 (the "License"); you may 2521N/A# not use this file except in compliance with the License. You may obtain 2521N/A# Unless required by applicable law or agreed to in writing, software 2521N/A# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 2521N/A# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 2521N/A# License for the specific language governing permissions and limitations 2521N/A# @author: Girish Moodalbail, Oracle, Inc. 2521N/A '''Wrapper around Solaris ipadm(1m) command.''' 2892N/A # in the case of IPv6 addresses remove any escape '\' character 2763N/A # If an address is IPv6, then to create a static IPv6 address 2763N/A # we need to create link-local address first 2763N/A # check if link-local address already exists 2763N/A # create a link-local address 2521N/A # delete the interface as well 2521N/A '''Wrapper around Solaris dladm(1m) command.''' 2892N/A # If the default_tag of lower_link is same as vid, then there 6029N/A # Set timeout with -w to ensure arping exits in case the interface 6029N/A # is deleted while it is running 6029N/A msg =
_LE(
"Failed sending gratuitous ARP to %(addr)s on " 6029N/A """Send advance notification of an IP address assignment. 6029N/A If the address is in the IPv4 family, send gratuitous ARP. 6029N/A If the address is in the IPv6 family, no advance notification is 6029N/A necessary, since the Neighbor Discovery Protocol (NDP), Duplicate 6029N/A Address Discovery (DAD), and (for stateless addresses) router 6029N/A advertisements (RAs) are sufficient for address resolution and 6029N/A duplicate address detection.