neutron-l3-agent revision 2583
#
# 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
# under the License.
# verify paths are valid
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.
"-o", "current", "ipv4"]
if p.returncode != 0:
print "failed to determine if IPv4 forwarding is enabled or not"
"-o", "current", "ipv6"]
if p.returncode != 0:
print "failed to determine if IPv6 forwarding is enabled or not"
print "System-wide IPv4 or IPv6 (or both) forwarding must be enabled " \
cmd = "/usr/lib/neutron/neutron-l3-agent --config-file %s " \
if __name__ == "__main__":