96ea5b799a
1. Listing, filtering by action and searching by source name and destination name 2. Edit/Create page, edits ping the API double fine, need to work through creates and deletes 3. Currently uses a `Precedence` intention keyname that doesn't yet exist in the real API
26 lines
671 B
JavaScript
26 lines
671 B
JavaScript
import Model from 'ember-data/model';
|
|
import attr from 'ember-data/attr';
|
|
|
|
export const PRIMARY_KEY = 'uid';
|
|
export const SLUG_KEY = 'ID';
|
|
|
|
export default Model.extend({
|
|
[PRIMARY_KEY]: attr('string'),
|
|
[SLUG_KEY]: attr('string'),
|
|
Description: attr('string'),
|
|
SourceNS: attr('string'),
|
|
SourceName: attr('string'),
|
|
DestinationName: attr('string'),
|
|
Precedence: attr('number'),
|
|
SourceType: attr('string'),
|
|
Action: attr('string'),
|
|
DefaultAddr: attr('string'),
|
|
DefaultPort: attr('number'),
|
|
Meta: attr(),
|
|
Datacenter: attr('string'),
|
|
CreatedAt: attr('date'),
|
|
UpdatedAt: attr('date'),
|
|
CreateIndex: attr('number'),
|
|
ModifyIndex: attr('number'),
|
|
});
|