neutron-l3-agent revision 5577
2521N/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 print "failed to retrieve hostmodel ipadm property" "hostmodel=%s" %
value,
"ipv4"]
print "failed to set ipadm hostmodel property to %s" %
value print '%s does not exist or is not readable' % f
# System-wide forwarding (either ipv4 or ipv6 or both) must be enabled # before neutron-l3-agent can be started. print "failed to determine if IPv4 forwarding is enabled or not" print "failed to determine if IPv6 forwarding is enabled or not" print "System-wide IPv4 or IPv6 (or both) forwarding must be " \
"enabled before enabling neutron-l3-agent" # remove any stale PF rules under _auto/neutron:l3:agent anchor "--config-file %s --config-file %s --config-file %s" % \
# The VPNaaS shutdown should unplumb all IP tunnels it created. But # be paranoid and check for lingering tunnels created by OpenStack # that may have been left behind if the OpenStack device driver exits # unexpectedly. OpenStack VPN configuration is created when the service # starts. Errors will occur if old IP tunnels still exist. print "Error: Found existing IP tunnel interface(s)." print "Use ipadm(1M) and dladm(1M) to remove it/them." print "Then use svcadm(1M) to clear the service." print "Use the following commands to remove:" print "\t# ipadm delete-ip %s; dladm delete-iptun %s" %
(ifn, ifn) # set the hostmodel property if necessary # first kill the SMF contract print "failed to kill the SMF contract: %s" %
(err) # We need to first remove the PF rules added under _auto/neutron:l3:agent # anchor and then remove the IP interfaces on which the rules were applied. # remove VNICs associated with L3 agent print "failed to retrieve IP interface names" # L3 agent datalinks are always 15 characters in length. They start # with either 'l3i' or 'l3e', end with '_0', and in between they are print "failed to remove datalinks used by L3 agent: %s" %
(err) # finally reset the hostmodel property