neutron-l3-agent revision 2944
# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations 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 IP Filter rules added by neutron-l3-agent print "failed to retrieve IP Filter rules" # L3 agent IP Filter rules are of the form # block in quick on l3i64cbb496_a_0 from ... to pool/15417332 # capture the IP pool name # remove the IP Filter rule print "failed to remove IP Filter rule %s: %s" %
(ipf, err) # remove IP Pools added by neutron-l3-agent # first kill the SMF contract print "failed to kill the SMF contract: %s" %
(err) # 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) # remove IPv4 Filter rules added by neutron-l3-agent # remove IPv6 Filter rules added by neutron-l3-agent # remove IP NAT rules added by neutron-l3-agent print "failed to retrieve IP NAT rules" # L3 agent IP NAT rules are of the form # bimap l3e64ccc496_a_0 192.168.1.3/32 -> 172.16.10.3/32