Hey Everyone,

Since the change to make the create() calls take a parameter of k/v
pairs has gotten approval I wanted to propose a change to make the
update calls do the same.  The review is here:
https://review.openstack.org/#change,929 .. I've posted this review in
order to get feedback and to have some code as a discussion starting
point.

This has a few unfortunate consequences:

1) Rename_net and set_port_state .. both of these are what we had for
our "update" calls, except they weren't very generic ;)  I've changed
the plugin interface to remove these calls and replace them with
generic update_port.  This will break any plugins not in the tree :(

2) The CLI will have to change.  Instead of "bin/cli rename_net <tid>
<nid> foo" we'll have to do something like "bin/cli update_net <tid>
<nid> name=foo".  Does that seem reasonable?  Looking for feedback
here.

Salvatore has a proposal out for changing the API to be more like nova
with a better deserialize that will (I think) do the same thing here.
If I'm not mistaken we will still have to change the plugins so if we
decide to go with his proposal we'll have to do this work anyways.

Also note that I didn't change the cisco plugins yet .. but I will.  I
just wanted to see if people are OK with this before I go and do that
since it is fairly time consuming.  Must be the shear number of tests!

Thanks,
Brad

-- 
Mailing list: https://launchpad.net/~netstack
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~netstack
More help   : https://help.launchpad.net/ListHelp

Reply via email to