open-nomad/ui/app/models/network.js

13 lines
349 B
JavaScript
Raw Normal View History

2017-09-19 14:47:10 +00:00
import attr from 'ember-data/attr';
import Fragment from 'ember-data-model-fragments/fragment';
import { array } from 'ember-data-model-fragments/attributes';
export default class Network extends Fragment {
@attr('string') device;
@attr('string') cidr;
@attr('string') ip;
@attr('string') mode;
@attr('number') mbits;
@array() ports;
}