-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathovs.h
31 lines (25 loc) · 968 Bytes
/
ovs.h
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
/*
* ovsd - Open vSwitch integration into LEDE's netifd
* Copyright (C) 2016 Arne Kappen <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef __OVSD_OVS_H
#define __OVSD_OVS_H
#include "ovsd.h"
int ovs_delete(char *bridge);
int ovs_create(struct ovswitch_br_config *cfg);
int ovs_prepare_bridge(char *bridge);
int ovs_add_port(char *bridge, char *port);
int ovs_remove_port(char *bridge, char *port);
int ovs_check_state(char *bridge);
int ovs_dump_info(struct blob_buf *buf, char *bridge);
const char* ovs_strerror(int error);
#endif