mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
vswitchd: Initial conversion to database-based configuration.
This has seen very little testing, so some features are almost certainly busted. Port mirroring is not yet converted, so it will definitely not work.
This commit is contained in:
11
lib/shash.c
11
lib/shash.c
@@ -76,6 +76,17 @@ shash_add(struct shash *sh, const char *name, const void *data)
|
||||
return node;
|
||||
}
|
||||
|
||||
bool
|
||||
shash_add_once(struct shash *sh, const char *name, const void *data)
|
||||
{
|
||||
if (!shash_find(sh, name)) {
|
||||
shash_add(sh, name, data);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
shash_delete(struct shash *sh, struct shash_node *node)
|
||||
{
|
||||
|
Reference in New Issue
Block a user