select 1 Country, filter Location NE Asia
select 2 City, filter Location EQ Europe
This is REPL for interacting with netmap in NEOFS and applying placement rules to it. Netmap and CRUSH enchacement with FILTERs is described in research plan.
To see help for specific command type command help
.
help
Get a list of commands.
exit
Exit program.
load <filename>
Load netmap from specified file.
save <filename>
Save netmap to specified file.
clear
Clear current netmap.
select <number> <key>
Example:
>>> add 1 /Location:Europe/Country:Germany
>>> add 2 /Location:Europe/Country:Austria
>>> add 3 /Location:Asia/Country:Korea
>>> add 4 /Location:Asia/Country:Japan
>>> select 1 Location
>>> select 2 Country
filter <key> <operation> <value>
Operation can be one of EQ, NE, LT, LE, GT, GE
Example:
>>> add 1 /Location:Europe/Country:Germany
>>> add 2 /Location:Europe/Country:Austria
>>> filter Country NE Austria
get-selection
Get nodes from current selection.
Example:
>>> load /examples/map2
>>> select 1 Country
>>> filter Location NE Asia
>>> get-selection
[13 14]
clear-selection
Clear current selection.
dump-selection <filename>
Dump netmap in graphical format. If using docker, /pics
directory is mounted as temp
on host.