Use the correct VLAN in machine.CreateDevice #47

Merged
merged 2 commits into from Apr 27, 2016

Conversation

Projects
None yet
3 participants
Contributor

voidspace commented Apr 27, 2016

machine.CreateDevice was using the wrong VLAN in the update call.

@@ -270,6 +270,7 @@ func (s *machineSuite) TestCreateDevice(c *gc.C) {
})
c.Assert(err, jc.ErrorIsNil)
c.Assert(device.InterfaceSet()[0].Name(), gc.Equals, "eth4")
+ c.Assert(device.InterfaceSet()[0].VLAN().ID(), gc.Equals, subnet.VLAN().ID())
@babbageclunk

babbageclunk Apr 27, 2016

Member

I tried to chase it down to check, but are you sure the subnet vlan id was different from the interface vlan id to start with? Did this fail before the fix?

Member

babbageclunk commented Apr 27, 2016

Looks good to me!

Contributor

voidspace commented Apr 27, 2016

$$merge$$

Contributor

jujubot commented Apr 27, 2016

@jujubot jujubot merged commit 794d847 into juju:master Apr 27, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment