Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object-mask error when trying to get PublicVlans/PrivateVlans of Gateway #42

Open
acamacho82 opened this issue Mar 20, 2017 · 0 comments

Comments

@acamacho82
Copy link
Contributor

acamacho82 commented Mar 20, 2017

Following error is raised when using masks in getPublicVlan and getPrivateVlan methods of SoftLayer_Network_Gateway:

com.softlayer.api.ApiException$Internal: Property 'networkVlan' not valid for 'SoftLayer_Network_Vlan'.(code: SoftLayer_Exception_WebService_ObjectMask, status: 500)

I found this error by using following java code:

Gateway.Service gatewayService = Gateway.service(client, gatewayId);
 // Mask to get relational properties of a public vlan
gatewayService.withMask().publicVlan().networkVlan().vlanNumber();
Vlan vlan = gatewayService.getObject().getPublicVlan();

I tried by removing networkVlan() in the mask, but vlanNumber() or other properties cannot be called after publicVlan().

It is possible to get local properties without masks but it's a problem when trying to get relational properties like primaryRouter, networkSpace, etc.

This same issue happens with getPrivateVlan method.

Regards,

@acamacho82 acamacho82 changed the title Object-mask error when trying to get PublicVlans/PrivateVlans of Gateway service Object-mask error when trying to get PublicVlans/PrivateVlans of Gateway Mar 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant