Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dpath: Support creation of multi-step path directly on the command line #29

Open
fscheiner opened this issue Nov 21, 2013 · 1 comment
Assignees

Comments

@fscheiner
Copy link
Collaborator

Currently when creating a dpath, a user has to specify source and destination of the dpath. The dpath tool then:

  1. creates a dpath according to an internal or external template that includes a single step path (with metric equal to 0) and a multi-step path (with metric equal to 1) that needs to be edited
  2. and if the EDITOR environment variable is set, it opens this dpath file for editing

It would be beneficial to be able to create a multi-step path in a dpath file just by using the command line, i.e. to support additional switches which allow to specifiy the transit sites and directories to use.

Possible implementation details

$ dpath -c [...] --via "<PUT_ADDRESS_AND_PATH1>;<GET_ADDRESS_AND_PATH1>"[ --via "<PUT_ADDRESS_AND_PATH2>;<GET_ADDRESS_AND_PATH2>"[ [...]]] 

As the transit site and directory of transfer step n could differ from the transit site and directory of transfer step n+1 (see example path below), both have to be specified as <PUT_ADDRESS_AND_PATH> and <GET_ADDRESS_AND_PATH>. The dpath tools should support multiple occurrences of the--via switch.

Example
Command line:

$ dpath -c --source "gsiftp://host1-int.domain.tld:2811" \
>             --destination "gsiftp://host3-ext.domain.tld:2811" \
>             --via "gsiftp://host2-int.domain.tld:2811/transit/dir/int/;gsiftp://host2-ext.domain.tld:2811/transit/dir/ext/"

Resulting path:

<path metric="0">
gsiftp://host1-int.domain.tld:2811;gsiftp://host2-int.domain.tld:2811/transit/dir/int/
gsiftp://host2-ext.domain.tld:2811/transit/dir/ext/;gsiftp://host3-ext.domain.tld:2811
</path>
@ghost ghost assigned fscheiner Nov 21, 2013
@fscheiner
Copy link
Collaborator Author

Todo:

  • extend CLI
  • implement functionality
  • testing

@fscheiner fscheiner removed this from the gtransfer v0.3.0 milestone Apr 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant