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

[GH 58] Link aggregation #57

Merged
merged 1 commit into from
Nov 21, 2016
Merged

Conversation

Tianqi-Tang
Copy link
Contributor

Link aggregation create/modify/delete support in storops.

@Tianqi-Tang Tianqi-Tang changed the base branch from master to develop November 18, 2016 03:35
@coveralls
Copy link

coveralls commented Nov 18, 2016

Coverage Status

Coverage increased (+0.003%) to 93.079% when pulling 2e61fad on feature/GH-58-link-aggregation into 8e93e2f on develop.

@coveralls
Copy link

coveralls commented Nov 18, 2016

Coverage Status

Coverage increased (+0.02%) to 93.091% when pulling baf97e8 on feature/GH-58-link-aggregation into 8e93e2f on develop.

- label: macAddress
- label: isLinkUp
- label: parentStorageProcessor
converter: UnityStorageProcessor
Copy link
Contributor

Choose a reason for hiding this comment

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

Need an empty line at the end of the file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

}
}
]
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Normally we format the json file with 2 space indent.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

assert_that(la.supported_mtus, only_contains(1500, 9000))

@patch_rest
def test_create(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need a case for creation failed due to already exists?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, added.

@coveralls
Copy link

coveralls commented Nov 21, 2016

Coverage Status

Coverage increased (+0.05%) to 93.121% when pulling b9d97af on feature/GH-58-link-aggregation into 8e93e2f on develop.

return cls(_id=resp.resource_id, cli=cli)

def modify(self, mtu=None, add_ports=None, remove_ports=None):
if mtu is None and not add_ports and not remove_ports:
Copy link

Choose a reason for hiding this comment

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

The client should ensure at least one thing to modify. It may be not necessary to check here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That make sense. I have removed it. Thanks.

addPorts=add_ports,
removePorts=remove_ports)
resp.raise_if_err()

Copy link

Choose a reason for hiding this comment

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

Is the function delete() implemented?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The delete is implemented by the framework.

Support Link aggregation in storops
@coveralls
Copy link

coveralls commented Nov 21, 2016

Coverage Status

Coverage increased (+0.04%) to 93.12% when pulling 1f0a33b on feature/GH-58-link-aggregation into 8e93e2f on develop.

@Tianqi-Tang Tianqi-Tang merged commit e797cbd into develop Nov 21, 2016
@Tianqi-Tang Tianqi-Tang deleted the feature/GH-58-link-aggregation branch November 21, 2016 06:27
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.

None yet

4 participants