summaryrefslogtreecommitdiffstats
path: root/manifests/profile/base/neutron/plugins/opencontrail.pp
blob: d13af612145948cb3057d597adaeea727b964f23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Copyright 2014 Red Hat, Inc.
#
# 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
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# 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.
#
# == Class: tripleo::profile::base::neutron::plugins::opencontrail
#
# Opencontrail Neutron profile for tripleo
#
# [*bootstrap_node*]
#   (Optional) The hostname of the node responsible for bootstrapping tasks
#   Defaults to hiera('bootstrap_nodeid')
#
# [*step*]
#   (Optional) The current step in deployment. See tripleo-heat-templates
#   for more details.
#   Defaults to hiera('step')
#
class tripleo::profile::base::neutron::plugins::opencontrail (
  $bootstrap_node = hiera('bootstrap_nodeid', undef),
  $step           = Integer(hiera('step')),
) {
  if $::hostname == downcase($bootstrap_node) {
    $sync_db = true
  } else {
    $sync_db = false
  }

  include ::tripleo::profile::base::neutron

  if $step >= 4 or ( $step >= 3 and $sync_db ) {
    include ::neutron::plugins::opencontrail
  }
}
n> size_t iwl_rx_trace_len(const struct iwl_trans *trans, void *rxbuf, size_t len) { struct iwl_cmd_header *cmd = (void *)((u8 *)rxbuf + sizeof(__le32)); struct ieee80211_hdr *hdr; if (cmd->cmd != trans->rx_mpdu_cmd) return len; hdr = (void *)((u8 *)cmd + sizeof(struct iwl_cmd_header) + trans->rx_mpdu_cmd_hdr_size); if (!ieee80211_is_data(hdr->frame_control)) return len; /* maybe try to identify EAPOL frames? */ return sizeof(__le32) + sizeof(*cmd) + trans->rx_mpdu_cmd_hdr_size + ieee80211_hdrlen(hdr->frame_control); } #endif #define __IWLWIFI_DEVICE_TRACE #include <linux/tracepoint.h> #include <linux/device.h> #include "iwl-trans.h" #if !defined(CONFIG_IWLWIFI_DEVICE_TRACING) || defined(__CHECKER__) #undef TRACE_EVENT #define TRACE_EVENT(name, proto, ...) \ static inline void trace_ ## name(proto) {} #undef DECLARE_EVENT_CLASS #define DECLARE_EVENT_CLASS(...) #undef DEFINE_EVENT #define DEFINE_EVENT(evt_class, name, proto, ...) \ static inline void trace_ ## name(proto) {} #endif #define DEV_ENTRY __string(dev, dev_name(dev)) #define DEV_ASSIGN __assign_str(dev, dev_name(dev)) #include "iwl-devtrace-io.h" #include "iwl-devtrace-ucode.h" #include "iwl-devtrace-msg.h" #include "iwl-devtrace-data.h" #include "iwl-devtrace-iwlwifi.h" #endif /* __IWLWIFI_DEVICE_TRACE */