Skip to content

Commit

Permalink
vlan-splinter: Fix inverted logic bug.
Browse files Browse the repository at this point in the history
When "other-config:enable-vlan-splinters=true" is set, the existing
vlans with ip address must be retained. The bug actually does the
opposite and retains the vlans without ip address. This commit fixes
it.

Reported-by: Roman Sokolkov <[email protected]>
Signed-off-by: Alex Wang <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
yew011 authored and blp committed Sep 5, 2013
1 parent 39ee708 commit 88dbaa9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ Ramana Reddy [email protected]
Rob Sherwood [email protected]
Roger Leigh [email protected]
Rogério Vinhal Nunes
Roman Sokolkov [email protected]
Saul St. John [email protected]
Scott Hendricks [email protected]
Sean Brady [email protected]
Expand Down
4 changes: 2 additions & 2 deletions vswitchd/bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -3974,10 +3974,10 @@ collect_splinter_vlans(const struct ovsrec_open_vswitch *ovs_cfg)
if (!netdev_open(vlan_dev->name, "system", &netdev)) {
if (!netdev_get_in4(netdev, NULL, NULL) ||
!netdev_get_in6(netdev, NULL)) {
vlandev_del(vlan_dev->name);
} else {
/* It has an IP address configured, so we don't own
* it. Don't delete it. */
} else {
vlandev_del(vlan_dev->name);
}
netdev_close(netdev);
}
Expand Down

0 comments on commit 88dbaa9

Please sign in to comment.