@@ -461,7 +461,7 @@ func TestClientVSwitchGetBridgeProtocolsOK(t *testing.T) {
461461 }
462462}
463463
464- func TestClientVSwitchSetBridgeProtocolsOK (t * testing.T ) {
464+ func TestClientVSwitchSetBridgeOptionsOK (t * testing.T ) {
465465 const bridge = "br0"
466466 protocols := []string {
467467 ProtocolOpenFlow10 ,
@@ -471,6 +471,7 @@ func TestClientVSwitchSetBridgeProtocolsOK(t *testing.T) {
471471 ProtocolOpenFlow14 ,
472472 ProtocolOpenFlow15 ,
473473 }
474+ hwaddr := "55:84:a3:2f:d3:20"
474475
475476 c := testClient ([]OptionFunc {Timeout (1 )}, func (cmd string , args ... string ) ([]byte , error ) {
476477 if want , got := "ovs-vsctl" , cmd ; want != got {
@@ -484,6 +485,7 @@ func TestClientVSwitchSetBridgeProtocolsOK(t *testing.T) {
484485 "bridge" ,
485486 bridge ,
486487 fmt .Sprintf ("protocols=%s" , strings .Join (protocols , "," )),
488+ fmt .Sprintf ("other-config:hwaddr=%s" , hwaddr ),
487489 }
488490 if want , got := wantArgs , args ; ! reflect .DeepEqual (want , got ) {
489491 t .Fatalf ("incorrect arguments\n - want: %v\n - got: %v" ,
@@ -495,6 +497,7 @@ func TestClientVSwitchSetBridgeProtocolsOK(t *testing.T) {
495497
496498 err := c .VSwitch .Set .Bridge (bridge , BridgeOptions {
497499 Protocols : protocols ,
500+ HWAddr : hwaddr ,
498501 })
499502 if err != nil {
500503 t .Fatalf ("unexpected error for Client.VSwitch.Set.Bridge: %v" , err )
0 commit comments