neutron-l3-agent revision 3162
0N/A# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. 0N/A# Licensed under the Apache License, Version 2.0 (the "License"); you may 0N/A# not use this file except in compliance with the License. You may obtain 0N/A# a copy of the License at 0N/A# Unless required by applicable law or agreed to in writing, software 0N/A# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 0N/A# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 0N/A# License for the specific language governing permissions and limitations 0N/A # verify paths are valid 0N/A print '%s does not exist or is not readable' % f
0N/A # System-wide forwarding (either ipv4 or ipv6 or both) must be enabled 0N/A # before neutron-l3-agent can be started. 0N/A "-o",
"current",
"ipv4"]
0N/A print "failed to determine if IPv4 forwarding is enabled or not" 0N/A "-o",
"current",
"ipv6"]
0N/A print "failed to determine if IPv6 forwarding is enabled or not" 0N/A print "System-wide IPv4 or IPv6 (or both) forwarding must be " \
0N/A "enabled before enabling neutron-l3-agent" 0N/A # remove IP Filter rules added by neutron-l3-agent 0N/A print "failed to retrieve IP Filter rules" 0N/A # L3 agent IP Filter rules are of the form 0N/A # block in quick on l3i64cbb496_a_0 from ... to pool/15417332 0N/A # capture the IP pool name 0N/A # remove the IP Filter rule 0N/A print "failed to remove IP Filter rule %s: %s" %
(ipf, err) 0N/A # remove IP Pools added by neutron-l3-agent 0N/A # first kill the SMF contract 0N/A print "failed to kill the SMF contract: %s" %
(err) 0N/A # We need to first remove the IP filter rules and then remove 0N/A # the IP interfaces on which the rules were applied. 0N/A # remove IPv4 Filter rules added by neutron-l3-agent 0N/A # remove IPv6 Filter rules added by neutron-l3-agent 0N/A # remove IP NAT rules added by neutron-l3-agent 0N/A print "failed to retrieve IP NAT rules" 0N/A # L3 agent IP NAT rules are of the form 0N/A # bimap l3e64ccc496_a_0 192.168.1.3/32 -> 172.16.10.3/32 0N/A # remove the IP NAT rule 0N/A # remove VNICs associated with L3 agent 0N/A print "failed to retrieve IP interface names" 0N/A # L3 agent datalinks are always 15 characters in length. They start 0N/A # with either 'l3i' or 'l3e', end with '_0', and in between they are 0N/A # hexadecimal digits. 0N/A # first remove the IP 0N/A # next remove the VNIC 0N/A print "failed to remove datalinks used by L3 agent: %s" %
(err)