components/openstack/neutron/files/agent/solaris/pd.py
changeset 6848 8e252a37ed0d
equal deleted inserted replaced
6847:57069587975f 6848:8e252a37ed0d
       
     1 # vim: tabstop=4 shiftwidth=4 softtabstop=4
       
     2 
       
     3 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
       
     4 #
       
     5 #    Licensed under the Apache License, Version 2.0 (the "License"); you may
       
     6 #    not use this file except in compliance with the License. You may obtain
       
     7 #    a copy of the License at
       
     8 #
       
     9 #         http://www.apache.org/licenses/LICENSE-2.0
       
    10 #
       
    11 #    Unless required by applicable law or agreed to in writing, software
       
    12 #    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
       
    13 #    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
       
    14 #    License for the specific language governing permissions and limitations
       
    15 #    under the License.
       
    16 
       
    17 from neutron.common import utils
       
    18 
       
    19 OPTS = []
       
    20 
       
    21 
       
    22 class PrefixDelegation(object):
       
    23     def __init__(self, *args, **kwargs):
       
    24         pass
       
    25 
       
    26     @utils.synchronized("l3-agent-pd")
       
    27     def enable_subnet(self, router_id, subnet_id, prefix, ri_ifname, mac):
       
    28         return
       
    29 
       
    30     @utils.synchronized("l3-agent-pd")
       
    31     def disable_subnet(self, router_id, subnet_id):
       
    32         pass
       
    33 
       
    34     @utils.synchronized("l3-agent-pd")
       
    35     def update_subnet(self, router_id, subnet_id, prefix):
       
    36         pass
       
    37 
       
    38     @utils.synchronized("l3-agent-pd")
       
    39     def add_gw_interface(self, router_id, gw_ifname):
       
    40         pass
       
    41 
       
    42     @utils.synchronized("l3-agent-pd")
       
    43     def delete_router_pd(self, router):
       
    44         pass
       
    45 
       
    46     @utils.synchronized("l3-agent-pd")
       
    47     def remove_gw_interface(self, router_id):
       
    48         pass
       
    49 
       
    50     @utils.synchronized("l3-agent-pd")
       
    51     def sync_router(self, router_id):
       
    52         pass
       
    53 
       
    54     @utils.synchronized("l3-agent-pd")
       
    55     def remove_stale_ri_ifname(self, router_id, stale_ifname):
       
    56         pass
       
    57 
       
    58     @utils.synchronized("l3-agent-pd")
       
    59     def process_prefix_update(self):
       
    60         pass
       
    61 
       
    62     def after_start(self):
       
    63         pass
       
    64 
       
    65 
       
    66 @utils.synchronized("l3-agent-pd")
       
    67 def remove_router(resource, event, l3_agent, **kwargs):
       
    68     pass
       
    69 
       
    70 
       
    71 def get_router_entry(ns_name):
       
    72     return {'gw_interface': None,
       
    73             'ns_name': None,
       
    74             'subnets': {}}
       
    75 
       
    76 
       
    77 @utils.synchronized("l3-agent-pd")
       
    78 def add_router(resource, event, l3_agent, **kwargs):
       
    79     pass