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

REST/CLI: Customizable chain paths #227

Open
stevenvanrossem opened this issue Jun 6, 2017 · 4 comments
Open

REST/CLI: Customizable chain paths #227

stevenvanrossem opened this issue Jun 6, 2017 · 4 comments

Comments

@stevenvanrossem
Copy link

It is a good feature request to have custom VNF placement:

  • you can add your own version instead of the default 'RoundRobinDcPlacementWithSAPs' algorithm.
  • you can specify the datacenter at VNF instantiation via the rest api :
    curl -X PUT http://127.0.0.1:5001/restapi/compute/dc1/server -H 'Content-Type: application/json' -d '{"image":"sonatanfv/sonata-iperf3-vnf"
    or via the son-emu-cli:
    son-emu-cli compute start -d dc1 -n server -i sonatanfv/sonata-iperf3-vnf
  • There is also the possibility to add custom paths to the chaining function, although I never tested this:
    https://github.com/sonata-nfv/son-emu/blob/master/src/emuvim/dcemulator/net.py#L537

Can we specify this path through the cli/rest api?

@mpeuster
Copy link

mpeuster commented Jun 6, 2017

I think we can specify it through the networking REST API, or not?

Just for clarification, if you now do:

son-emu-cli compute start -d dc1 -n client -i sonatanfv/sonata-empty-vnf
son-emu-cli compute start -d dc2 -n server -i sonatanfv/sonata-empty-vnf

son-emu-cli network add -b -src client:client-eth0 -dst server:server-eth0

It will automatically use the shortest path between the dc1 and dc2 switch, right?

@stevenvanrossem
Copy link
Author

yes, default is shortest path calculation

@stevenvanrossem
Copy link
Author

the networking REST api/cli should support this path specification as an extra argument

@mpeuster
Copy link

mpeuster commented Jun 6, 2017

yes, I agree this would be a cool extension 👍

@mpeuster mpeuster changed the title custom VNF placement REST/CLI: Customizable chain paths May 15, 2018
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

2 participants