Skip to content

Conversation

@mseri
Copy link
Contributor

@mseri mseri commented Sep 12, 2016

When updating the MTU of a VIF it can happen that the VM domid is still out of sync. We can use the correct domid value passing it via xenopsd as a field in VIF.stat.

See also xapi-project/xcp-idl#131 and xapi-project/xenopsd#288
Signed-off-by: Marcello Seri marcello.seri@citrix.com

Marcello Seri added 2 commits September 12, 2016 16:50
Signed-off-by: Marcello Seri <marcello.seri@citrix.com>
Signed-off-by: Marcello Seri <marcello.seri@citrix.com>
(* in the database is completely updated *)
let some_domid = Opt.map (fun x -> (snd x).domid) info
|> Opt.join in
match some_domid with
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are already inside a match on info, where state is the record you need. So you can just match on state.domid here. Or state.device when we switch from domid to device name in the type (see comment on the xcp-idl PR).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, the indentation looks one step too far to the right.

Signed-off-by: Marcello Seri <marcello.seri@citrix.com>
@mseri
Copy link
Contributor Author

mseri commented Sep 13, 2016

I make a new PR with the latest changes, based on the latest master.

@mseri mseri closed this Sep 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants