2012-02-10 21:09:00 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2012 Nicira, Inc.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2012-09-20 22:30:55 +00:00
|
|
|
* License along with this library. If not, see
|
2012-07-21 10:06:23 +00:00
|
|
|
* <http://www.gnu.org/licenses/>.
|
2012-02-10 21:09:00 +00:00
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Dan Wendlandt <dan@nicira.com>
|
|
|
|
* Kyle Mestery <kmestery@cisco.com>
|
|
|
|
* Ansis Atteka <aatteka@nicira.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __VIR_NETDEV_OPENVSWITCH_H__
|
|
|
|
# define __VIR_NETDEV_OPENVSWITCH_H__
|
|
|
|
|
|
|
|
# include "internal.h"
|
|
|
|
# include "virnetdevvportprofile.h"
|
2012-08-17 04:04:54 +00:00
|
|
|
# include "virnetdevvlan.h"
|
2012-02-10 21:09:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
int virNetDevOpenvswitchAddPort(const char *brname,
|
|
|
|
const char *ifname,
|
2012-07-17 12:07:59 +00:00
|
|
|
const virMacAddrPtr macaddr,
|
2012-03-07 07:15:36 +00:00
|
|
|
const unsigned char *vmuuid,
|
2012-08-17 04:04:54 +00:00
|
|
|
virNetDevVPortProfilePtr ovsport,
|
|
|
|
virNetDevVlanPtr virtVlan)
|
2012-02-10 21:09:00 +00:00
|
|
|
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3)
|
|
|
|
ATTRIBUTE_RETURN_CHECK;
|
|
|
|
|
|
|
|
int virNetDevOpenvswitchRemovePort(const char *brname, const char *ifname)
|
|
|
|
ATTRIBUTE_NONNULL(2) ATTRIBUTE_RETURN_CHECK;
|
|
|
|
|
2012-10-01 15:18:21 +00:00
|
|
|
int virNetDevOpenvswitchGetMigrateData(char **migrate, const char *ifname)
|
|
|
|
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_RETURN_CHECK;
|
|
|
|
|
|
|
|
int virNetDevOpenvswitchSetMigrateData(char *migrate, const char *ifname)
|
|
|
|
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_RETURN_CHECK;
|
|
|
|
|
2012-02-10 21:09:00 +00:00
|
|
|
#endif /* __VIR_NETDEV_OPENVSWITCH_H__ */
|