Skip to content

Commit

Permalink
remote/exporter: add and export NetworkUSBMassStorage
Browse files Browse the repository at this point in the history
Signed-off-by: Enrico Joerns <[email protected]>
  • Loading branch information
ejoerns authored and jluebbe committed Mar 19, 2018
1 parent 69dab4c commit 5d08dde
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions labgrid/remote/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ def _get_params(self):
exports["AlteraUSBBlaster"] = USBGenericExport
exports["SigrokUSBDevice"] = USBSigrokExport

exports["USBMassStorage"] = USBGenericExport


@attr.s
class EthernetPortExport(ResourceExport):
Expand Down
8 changes: 8 additions & 0 deletions labgrid/resource/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,11 @@ class NetworkSigrokUSBDevice(RemoteUSBResource):
def __attrs_post_init__(self):
self.timeout = 10.0
super().__attrs_post_init__()

@target_factory.reg_resource
@attr.s(cmp=False)
class NetworkUSBMassStorage(RemoteUSBResource):
"""The NetworkUSBMassStorage describes a remotely accessible USB storage device"""
def __attrs_post_init__(self):
self.timeout = 10.0
super().__attrs_post_init__()

0 comments on commit 5d08dde

Please sign in to comment.