2605N/A# vim: tabstop=4 shiftwidth=4 softtabstop=4 6033N/A# Copyright (c) 2014, 2016 Oracle and/or its affiliates. All rights reserved. 2605N/A# Licensed under the Apache License, Version 2.0 (the "License"); you may 2605N/A# not use this file except in compliance with the License. You may obtain 2605N/A# Unless required by applicable law or agreed to in writing, software 2605N/A# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 2605N/A# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 2605N/A# License for the specific language governing permissions and limitations 2605N/A# @author: Girish Moodalbail, Oracle, Inc. 2605N/A '''Wrapper around Solaris ipadm(1m) command.''' 2900N/A # in the case of IPv6 addresses remove any escape '\' character 2769N/A # If an address is IPv6, then to create a static IPv6 address 2769N/A # we need to create link-local address first 2769N/A # check if link-local address already exists 2769N/A # create a link-local address 2605N/A # delete the interface as well 2605N/A '''Wrapper around Solaris dladm(1m) command.''' 2900N/A # If the default_tag of lower_link is same as vid, then there 2605N/A '''Wrapper around Solaris ippool(1m) command''' 2605N/A # This command will fail if ippool is in use by ipf, so the 2605N/A # caller has to ensure that it's not being used in an ipf rule 2605N/A '''Wrapper around Solaris ipf(1m) command''' 2605N/A # assumes that rules are inbound! 2605N/A '''Wrapper around Solaris ipnat(1m) command'''