6846N/A# vim: tabstop=4 shiftwidth=4 softtabstop=4
6846N/A
6846N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
6846N/A#
6846N/A# Licensed under the Apache License, Version 2.0 (the "License"); you may
6846N/A# not use this file except in compliance with the License. You may obtain
6846N/A# a copy of the License at
6846N/A#
6846N/A# http://www.apache.org/licenses/LICENSE-2.0
6846N/A#
6846N/A# Unless required by applicable law or agreed to in writing, software
6846N/A# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
6846N/A# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
6846N/A# License for the specific language governing permissions and limitations
6846N/A# under the License.
6846N/A
6846N/Afrom neutron.common import utils
6846N/A
6846N/AOPTS = []
6846N/A
6846N/A
6846N/Aclass PrefixDelegation(object):
6846N/A def __init__(self, *args, **kwargs):
6846N/A pass
6846N/A
6846N/A @utils.synchronized("l3-agent-pd")
6846N/A def enable_subnet(self, router_id, subnet_id, prefix, ri_ifname, mac):
6846N/A return
6846N/A
6846N/A @utils.synchronized("l3-agent-pd")
6846N/A def disable_subnet(self, router_id, subnet_id):
6846N/A pass
6846N/A
6846N/A @utils.synchronized("l3-agent-pd")
6846N/A def update_subnet(self, router_id, subnet_id, prefix):
6846N/A pass
6846N/A
6846N/A @utils.synchronized("l3-agent-pd")
6846N/A def add_gw_interface(self, router_id, gw_ifname):
6846N/A pass
6846N/A
6846N/A @utils.synchronized("l3-agent-pd")
6846N/A def delete_router_pd(self, router):
6846N/A pass
6846N/A
6846N/A @utils.synchronized("l3-agent-pd")
6846N/A def remove_gw_interface(self, router_id):
6846N/A pass
6846N/A
6846N/A @utils.synchronized("l3-agent-pd")
6846N/A def sync_router(self, router_id):
6846N/A pass
6846N/A
6846N/A @utils.synchronized("l3-agent-pd")
6846N/A def remove_stale_ri_ifname(self, router_id, stale_ifname):
6846N/A pass
6846N/A
6846N/A @utils.synchronized("l3-agent-pd")
6846N/A def process_prefix_update(self):
6846N/A pass
6846N/A
6846N/A def after_start(self):
6846N/A pass
6846N/A
6846N/A
6846N/A@utils.synchronized("l3-agent-pd")
6846N/Adef remove_router(resource, event, l3_agent, **kwargs):
6846N/A pass
6846N/A
6846N/A
6846N/Adef get_router_entry(ns_name):
6846N/A return {'gw_interface': None,
6846N/A 'ns_name': None,
6846N/A 'subnets': {}}
6846N/A
6846N/A
6846N/A@utils.synchronized("l3-agent-pd")
6846N/Adef add_router(resource, event, l3_agent, **kwargs):
6846N/A pass