Open LewisPringle opened 2 years ago
Probably add 'User-Overrides' section to Device object, and maybe have way to get all devices with overrides, and maybe just auto-include User-Overrides in each object?
But PATCH (probably) lets you update fields of the User-Overrides section for a device or network.
OLD SUGGESTION THAT BASICALLY MAPS TO THIS:
UI - networks
name - DEFAULTS to some combo of friendlyname and network addrs, but is editable
allow PATCH ui on Network/ID/ ... name=new-name...
PATCH support for DEVICES
allow sepecify name and notes
and display notes in addition to name
add editable field for 'Notes'
UNCLEAR if we want favorites attribute. Clear we want some user overrides. Unclear if we want rigid data model, or arbitrary patches on existing data model. Probably safer to go with rigid data model.
considering adding this to device model:
struct UserOverridesType {
/*
/
optional
/**
*/
optional<Collection<String>> fTags;
/**
* @todo consider but probably interpret the text as markdown.
*/
optional<String> fNotes;
};
For now - only support PATCH on DEVICE/ID/ /userOverrides/X fields...
try first getting WSAPI working for device user overrides. Then do network useroverrides (probably also name, tags, notes).
next step is MGR API to store in database, and mixin, and PATCH WSAPI to be able to set.
I think device part done, and maybe tweak full set of fields can set (at least create demo/example in docs); and then do network usersettings equivilent. THEN backend part of this is done.
as part of this rewriting the rollup code (did network, and doing device). And added 'names' feature to networks as well (as I had done before to devices).
mostly done with backend code. Just a bit more cleanup and hten move on to GUI side of this,
SADLY - for vEthernet (nat) {172.28.16.0/20} etc being repeated so many times is to use aggregating the same (rolled up) network interface. BUT - I dont support that yet. May need to push down the stack and tackle that problem now ;-(
doing UI for NOTES (and tags) right now.
when adding tags support for devices/networks, also allow that tags to be shown in column for devices/networks view