File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ func (sw *OvsSwitch) DeleteEndpoint(intfName string) error {
272
272
// AddPeer creates a VTEP interface
273
273
func (sw * OvsSwitch ) AddPeer (vtepIP string ) error {
274
274
// Setup VTEPs only in vxlan and vrouter mode
275
- if sw .netType != "vxlan" || sw .netType != "vrouter" {
275
+ if sw .netType != "vxlan" && sw .netType != "vrouter" {
276
276
return nil
277
277
}
278
278
@@ -311,7 +311,7 @@ func (sw *OvsSwitch) AddPeer(vtepIP string) error {
311
311
// RemovePeer deletes a VTEP
312
312
func (sw * OvsSwitch ) RemovePeer (vtepIP string ) error {
313
313
// delete VTEPs only in vxlan and vrouter mode
314
- if sw .netType != "vxlan" || sw .netType != "vrouter" {
314
+ if sw .netType != "vxlan" && sw .netType != "vrouter" {
315
315
return nil
316
316
}
317
317
You can’t perform that action at this time.
0 commit comments