Advertisement
tuanklnew

ml2.conf

May 25th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.69 KB | None | 0 0
  1. [DEFAULT]
  2.  
  3. #
  4. # From oslo.log
  5. #
  6.  
  7. # If set to true, the logging level will be set to DEBUG instead of the default
  8. # INFO level. (boolean value)
  9. # Note: This option can be changed without restarting.
  10. #debug = false
  11.  
  12. # DEPRECATED: If set to false, the logging level will be set to WARNING instead
  13. # of the default INFO level. (boolean value)
  14. # This option is deprecated for removal.
  15. # Its value may be silently ignored in the future.
  16. #verbose = true
  17.  
  18. # The name of a logging configuration file. This file is appended to any
  19. # existing logging configuration files. For details about logging configuration
  20. # files, see the Python logging module documentation. Note that when logging
  21. # configuration files are used then all logging configuration is set in the
  22. # configuration file and other logging configuration options are ignored (for
  23. # example, logging_context_format_string). (string value)
  24. # Note: This option can be changed without restarting.
  25. # Deprecated group/name - [DEFAULT]/log_config
  26. #log_config_append = <None>
  27.  
  28. # Defines the format string for %%(asctime)s in log records. Default:
  29. # %(default)s . This option is ignored if log_config_append is set. (string
  30. # value)
  31. #log_date_format = %Y-%m-%d %H:%M:%S
  32.  
  33. # (Optional) Name of log file to send logging output to. If no default is set,
  34. # logging will go to stderr as defined by use_stderr. This option is ignored if
  35. # log_config_append is set. (string value)
  36. # Deprecated group/name - [DEFAULT]/logfile
  37. #log_file = <None>
  38.  
  39. # (Optional) The base directory used for relative log_file paths. This option
  40. # is ignored if log_config_append is set. (string value)
  41. # Deprecated group/name - [DEFAULT]/logdir
  42. #log_dir = <None>
  43.  
  44. # Uses logging handler designed to watch file system. When log file is moved or
  45. # removed this handler will open a new log file with specified path
  46. # instantaneously. It makes sense only if log_file option is specified and
  47. # Linux platform is used. This option is ignored if log_config_append is set.
  48. # (boolean value)
  49. #watch_log_file = false
  50.  
  51. # Use syslog for logging. Existing syslog format is DEPRECATED and will be
  52. # changed later to honor RFC5424. This option is ignored if log_config_append
  53. # is set. (boolean value)
  54. #use_syslog = false
  55.  
  56. # Syslog facility to receive log lines. This option is ignored if
  57. # log_config_append is set. (string value)
  58. #syslog_log_facility = LOG_USER
  59.  
  60. # Log output to standard error. This option is ignored if log_config_append is
  61. # set. (boolean value)
  62. #use_stderr = false
  63.  
  64. # Format string to use for log messages with context. (string value)
  65. #logging_context_format_string = %(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [%(request_id)s %(user_identity)s] %(instance)s%(message)s
  66.  
  67. # Format string to use for log messages when context is undefined. (string
  68. # value)
  69. #logging_default_format_string = %(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [-] %(instance)s%(message)s
  70.  
  71. # Additional data to append to log message when logging level for the message
  72. # is DEBUG. (string value)
  73. #logging_debug_format_suffix = %(funcName)s %(pathname)s:%(lineno)d
  74.  
  75. # Prefix each line of exception output with this format. (string value)
  76. #logging_exception_prefix = %(asctime)s.%(msecs)03d %(process)d ERROR %(name)s %(instance)s
  77.  
  78. # Defines the format string for %(user_identity)s that is used in
  79. # logging_context_format_string. (string value)
  80. #logging_user_identity_format = %(user)s %(tenant)s %(domain)s %(user_domain)s %(project_domain)s
  81.  
  82. # List of package logging levels in logger=LEVEL pairs. This option is ignored
  83. # if log_config_append is set. (list value)
  84. #default_log_levels = amqp=WARN,amqplib=WARN,boto=WARN,qpid=WARN,sqlalchemy=WARN,suds=INFO,oslo.messaging=INFO,iso8601=WARN,requests.packages.urllib3.connectionpool=WARN,urllib3.connectionpool=WARN,websocket=WARN,requests.packages.urllib3.util.retry=WARN,urllib3.util.retry=WARN,keystonemiddleware=WARN,routes.middleware=WARN,stevedore=WARN,taskflow=WARN,keystoneauth=WARN,oslo.cache=INFO,dogpile.core.dogpile=INFO
  85.  
  86. # Enables or disables publication of error events. (boolean value)
  87. #publish_errors = false
  88.  
  89. # The format for an instance that is passed with the log message. (string
  90. # value)
  91. #instance_format = "[instance: %(uuid)s] "
  92.  
  93. # The format for an instance UUID that is passed with the log message. (string
  94. # value)
  95. #instance_uuid_format = "[instance: %(uuid)s] "
  96.  
  97. # Interval, number of seconds, of log rate limiting. (integer value)
  98. #rate_limit_interval = 0
  99.  
  100. # Maximum number of logged messages per rate_limit_interval. (integer value)
  101. #rate_limit_burst = 0
  102.  
  103. # Log level name used by rate limiting: CRITICAL, ERROR, INFO, WARNING, DEBUG
  104. # or empty string. Logs with level greater or equal to rate_limit_except_level
  105. # are not filtered. An empty string means that all levels are filtered. (string
  106. # value)
  107. #rate_limit_except_level = CRITICAL
  108.  
  109. # Enables or disables fatal status of deprecations. (boolean value)
  110. #fatal_deprecations = false
  111.  
  112.  
  113. [ml2]
  114.  
  115. type_drivers = flat,vxlan
  116. tenant_network_types = vxlan
  117. mechanism_drivers = opendaylight_v2
  118. extension_drivers = port_security
  119.  
  120. #
  121. # From neutron.ml2
  122. #
  123.  
  124. # List of network type driver entrypoints to be loaded from the
  125. # neutron.ml2.type_drivers namespace. (list value)
  126. #type_drivers = local,flat,vlan,gre,vxlan,geneve
  127.  
  128. # Ordered list of network_types to allocate as tenant networks. The default
  129. # value 'local' is useful for single-box testing but provides no connectivity
  130. # between hosts. (list value)
  131. #tenant_network_types = local
  132.  
  133. # An ordered list of networking mechanism driver entrypoints to be loaded from
  134. # the neutron.ml2.mechanism_drivers namespace. (list value)
  135. #mechanism_drivers =
  136.  
  137. # An ordered list of extension driver entrypoints to be loaded from the
  138. # neutron.ml2.extension_drivers namespace. For example: extension_drivers =
  139. # port_security,qos (list value)
  140. #extension_drivers =
  141.  
  142. # Maximum size of an IP packet (MTU) that can traverse the underlying physical
  143. # network infrastructure without fragmentation when using an overlay/tunnel
  144. # protocol. This option allows specifying a physical network MTU value that
  145. # differs from the default global_physnet_mtu value. (integer value)
  146. #path_mtu = 0
  147.  
  148. # A list of mappings of physical networks to MTU values. The format of the
  149. # mapping is <physnet>:<mtu val>. This mapping allows specifying a physical
  150. # network MTU value that differs from the default global_physnet_mtu value.
  151. # (list value)
  152. #physical_network_mtus =
  153.  
  154. # Default network type for external networks when no provider attributes are
  155. # specified. By default it is None, which means that if provider attributes are
  156. # not specified while creating external networks then they will have the same
  157. # type as tenant networks. Allowed values for external_network_type config
  158. # option depend on the network type values configured in type_drivers config
  159. # option. (string value)
  160. #external_network_type = <None>
  161.  
  162. # IP version of all overlay (tunnel) network endpoints. Use a value of 4 for
  163. # IPv4 or 6 for IPv6. (integer value)
  164. #overlay_ip_version = 4
  165.  
  166.  
  167. [ml2_type_flat]
  168.  
  169. flat_networks = external
  170.  
  171. #
  172. # From neutron.ml2
  173. #
  174.  
  175. # List of physical_network names with which flat networks can be created. Use
  176. # default '*' to allow flat networks with arbitrary physical_network names. Use
  177. # an empty list to disable flat networks. (list value)
  178. #flat_networks = *
  179.  
  180.  
  181. [ml2_type_geneve]
  182.  
  183. #
  184. # From neutron.ml2
  185. #
  186.  
  187. # Comma-separated list of <vni_min>:<vni_max> tuples enumerating ranges of
  188. # Geneve VNI IDs that are available for tenant network allocation (list value)
  189. #vni_ranges =
  190.  
  191. # Geneve encapsulation header size is dynamic, this value is used to calculate
  192. # the maximum MTU for the driver. This is the sum of the sizes of the outer ETH
  193. # + IP + UDP + GENEVE header sizes. The default size for this field is 50,
  194. # which is the size of the Geneve header without any additional option headers.
  195. # (integer value)
  196. #max_header_size = 30
  197.  
  198.  
  199. [ml2_type_gre]
  200.  
  201. #tunnel_id_ranges = 100:200
  202.  
  203. #
  204. # From neutron.ml2
  205. #
  206.  
  207. # Comma-separated list of <tun_min>:<tun_max> tuples enumerating ranges of GRE
  208. # tunnel IDs that are available for tenant network allocation (list value)
  209. #tunnel_id_ranges =
  210.  
  211.  
  212. [ml2_type_vlan]
  213.  
  214. #vni_ranges = 201:300
  215.  
  216. #
  217. # From neutron.ml2
  218. #
  219.  
  220. # List of <physical_network>:<vlan_min>:<vlan_max> or <physical_network>
  221. # specifying physical_network names usable for VLAN provider and tenant
  222. # networks, as well as ranges of VLAN tags on each available for allocation to
  223. # tenant networks. (list value)
  224. #network_vlan_ranges =
  225.  
  226.  
  227. [ml2_type_vxlan]
  228. vni_ranges = 1:1000
  229.  
  230. #
  231. # From neutron.ml2
  232. #
  233.  
  234. # Comma-separated list of <vni_min>:<vni_max> tuples enumerating ranges of
  235. # VXLAN VNI IDs that are available for tenant network allocation (list value)
  236. #vni_ranges =
  237.  
  238. # Multicast group for VXLAN. When configured, will enable sending all broadcast
  239. # traffic to this multicast group. When left unconfigured, will disable
  240. # multicast VXLAN mode. (string value)
  241. #vxlan_group = <None>
  242.  
  243.  
  244. [securitygroup]
  245. enable_ipset = true
  246.  
  247.  
  248. #
  249. # From neutron.ml2
  250. #
  251.  
  252. # Driver for security groups firewall in the L2 agent (string value)
  253. #firewall_driver = <None>
  254.  
  255. # Controls whether the neutron security group API is enabled in the server. It
  256. # should be false when using no security groups or using the nova security
  257. # group API. (boolean value)
  258. #enable_security_group = true
  259.  
  260. # Use ipset to speed-up the iptables based security groups. Enabling ipset
  261. # support requires that ipset is installed on L2 agent node. (boolean value)
  262. #enable_ipset = true
  263.  
  264. [ml2_odl]
  265. url = http://192.168.84.146:8080/controller/nb/v2/neutron
  266. password = admin
  267. username = admin
  268.  
  269. [ovs]
  270. local_ip = 10.10.0.101
  271. bridge_mappings = external:br-ex
  272.  
  273. [agent]
  274. tunnel_types = vxlan
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement