components/openstack/neutron/files/neutron-l3-agent.xml
branchs11u2-sru
changeset 4156 4b1def16fe9b
parent 3178 77584387a894
child 4389 a44bb9a2917e
equal deleted inserted replaced
4146:097063f324c0 4156:4b1def16fe9b
     1 <?xml version="1.0" ?>
     1 <?xml version="1.0" ?>
     2 <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
     2 <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
     3 <!--
     3 <!--
     4  Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
     4  Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
     5 
     5 
     6  Licensed under the Apache License, Version 2.0 (the "License"); you may
     6  Licensed under the Apache License, Version 2.0 (the "License"); you may
     7  not use this file except in compliance with the License. You may obtain
     7  not use this file except in compliance with the License. You may obtain
     8  a copy of the License at
     8  a copy of the License at
     9 
     9 
    28     <dependency name='multiuser' grouping='require_all' restart_on='error'
    28     <dependency name='multiuser' grouping='require_all' restart_on='error'
    29       type='service'>
    29       type='service'>
    30       <service_fmri value='svc:/milestone/multi-user:default' />
    30       <service_fmri value='svc:/milestone/multi-user:default' />
    31     </dependency>
    31     </dependency>
    32 
    32 
       
    33     <dependency name='upgrade' grouping='require_all' restart_on='none'
       
    34       type='service'>
       
    35       <service_fmri
       
    36         value='svc:/application/openstack/neutron/neutron-upgrade' />
       
    37     </dependency>
       
    38 
    33     <dependency name='ipfilter' grouping='require_all' restart_on='error'
    39     <dependency name='ipfilter' grouping='require_all' restart_on='error'
    34       type='service'>
    40       type='service'>
    35       <service_fmri value='svc:/network/ipfilter:default' />
    41       <service_fmri value='svc:/network/ipfilter:default' />
    36     </dependency>
    42     </dependency>
    37 
    43 
    38     <dependency name='ntp' grouping='optional_all' restart_on='none'
    44     <dependency name='ntp' grouping='optional_all' restart_on='none'
    39       type='service'>
    45       type='service'>
    40       <service_fmri value='svc:/network/ntp'/>
    46       <service_fmri value='svc:/network/ntp'/>
    41     </dependency>
    47     </dependency>
    42 
    48 
       
    49     <dependency name='rabbitmq' grouping='optional_all' restart_on='none'
       
    50       type='service'>
       
    51       <service_fmri value='svc:/network/amqp/rabbitmq'/>
       
    52     </dependency>
       
    53 
    43     <logfile_attributes permissions='600'/>
    54     <logfile_attributes permissions='600'/>
    44 
    55 
    45     <exec_method timeout_seconds="60" type="method" name="start"
    56     <exec_method timeout_seconds="60" type="method" name="start"
    46       exec="/lib/svc/method/neutron-l3-agent %m %{config/config_path} %{config/l3_config_path}">
    57       exec="/lib/svc/method/neutron-l3-agent %m %{config/config_path} %{config/l3_config_path}">
    47       <method_context>
    58       <method_context>
    48         <method_credential user='neutron' group='neutron' />
    59         <!-- sys_ip_config is required to set 'hostmodel' ipadm property -->
       
    60         <method_credential user='neutron' group='neutron' privileges='basic,sys_ip_config' />
    49       </method_context>
    61       </method_context>
    50     </exec_method>
    62     </exec_method>
    51     <exec_method timeout_seconds="600" type="method" name="stop"
    63     <exec_method timeout_seconds="600" type="method" name="stop"
    52       exec="/lib/svc/method/neutron-l3-agent %m %{restarter/contract}">
    64       exec="/lib/svc/method/neutron-l3-agent %m %{restarter/contract}">
    53       <method_context>
    65       <method_context>
    54         <method_credential user='neutron' group='neutron' />
    66         <!-- sys_ip_config is required to set 'hostmodel' ipadm property -->
       
    67         <method_credential user='neutron' group='neutron' privileges='basic,sys_ip_config' />
    55       </method_context>
    68       </method_context>
    56     </exec_method>
    69     </exec_method>
    57 
    70 
    58     <instance name='default' enabled='false'>
    71     <instance name='default' enabled='false'>
    59       <!-- to start/stop/refresh the service -->
    72       <!-- to start/stop/refresh the service -->