ovn-controller: Pass 'chassis_id' explicitly to functions that need it.
[cascardo/ovs.git] / ovn / controller / physical.h
1 /* Copyright (c) 2015 Nicira, Inc.
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at:
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15
16 #ifndef OVN_PHYSICAL_H
17 #define OVN_PHYSICAL_H 1
18
19 /* Logical/Physical Translation
20  * ============================
21  *
22  * This module implements physical-to-logical and logical-to-physical
23  * translation as separate OpenFlow tables that run before and after,
24  * respectively, the logical pipeline OpenFlow tables.
25  */
26
27 struct controller_ctx;
28 struct hmap;
29 struct ovsrec_bridge;
30
31 void physical_init(struct controller_ctx *);
32 void physical_run(struct controller_ctx *, const struct ovsrec_bridge *br_int,
33                   const char *chassis_id, struct hmap *flow_table);
34
35 #endif /* ovn/physical.h */