File: chassis.h

package info (click to toggle)
ovn 25.09.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,492 kB
  • sloc: ansic: 106,060; xml: 23,314; sh: 3,322; python: 1,838; makefile: 836
file content (63 lines) | stat: -rw-r--r-- 2,344 bytes parent folder | download | duplicates (3)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/* Copyright (c) 2015, 2016 Nicira, 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.
 */

#ifndef OVN_CHASSIS_H
#define OVN_CHASSIS_H 1

#include <stdbool.h>
#include "lib/ovn-sb-idl.h"

#define CHASSIS_IDX_PREFIX "ovn-chassis-idx-"

struct ovsdb_idl;
struct ovsdb_idl_index;
struct ovsdb_idl_txn;
struct ovsrec_bridge;
struct ovsrec_open_vswitch_table;
struct sbrec_chassis;
struct sbrec_chassis_table;
struct sbrec_chassis_private_table;
struct sset;
struct eth_addr;
struct smap;

extern char *cli_system_id;
extern char *file_system_id;

void chassis_register_ovs_idl(struct ovsdb_idl *);
const struct sbrec_chassis *chassis_run(
    struct ovsdb_idl_txn *ovnsb_idl_txn,
    struct ovsdb_idl_index *sbrec_chassis_by_name,
    struct ovsdb_idl_index *sbrec_chassis_private_by_name,
    const struct ovsrec_open_vswitch_table *,
    const char *chassis_id, const struct ovsrec_bridge *br_int,
    const struct sset *transport_zones,
    const struct sbrec_chassis_private **chassis_private);
bool chassis_cleanup(struct ovsdb_idl_txn *ovs_idl_txn,
                     struct ovsdb_idl_txn *ovnsb_idl_txn,
                     const struct ovsrec_open_vswitch_table *,
                     const struct sbrec_chassis *,
                     const struct sbrec_chassis_private *);
bool chassis_get_mac(const struct sbrec_chassis *chassis,
                     const char *bridge_mapping,
                     struct eth_addr *chassis_mac);
const char * get_chassis_mac_mappings(const struct smap *ext_ids,
                                      const char *chassis_id);
const char *get_ovs_chassis_id(const struct ovsrec_open_vswitch_table *);
const char *get_chassis_idx(const struct ovsrec_open_vswitch_table *);
void store_chassis_index_if_needed(const struct ovsrec_open_vswitch_table *);


#endif /* controller/chassis.h */