]> git.proxmox.com Git - mirror_ovs.git/commit
ovn-sbctl: support setting rbac role for remote connections
authorLance Richardson <lrichard@redhat.com>
Wed, 31 May 2017 23:06:11 +0000 (19:06 -0400)
committerBen Pfaff <blp@ovn.org>
Thu, 8 Jun 2017 21:06:39 +0000 (14:06 -0700)
commitfff48136657c76279b08ea27474c6741db576157
tree72ba6fb6da6e08d43ff568148ca911a5dde9acba
parent75ddb5f4698fa64a10edc04522bdb2ec2eedb47d
ovn-sbctl: support setting rbac role for remote connections

Add support for specifying rbac "role" when setting remote
connection configuration in the southbound database.

Prior to this change, usage examples included:

    ovn-sbctl set-connection ptcp:6642
    ovn-sbctl set-connection pssl:6642 \
                             read-only ptcp:7777 \
                             read-write punix:/tmp.foo

With this change, in addition to the above:

    ovn-sbctl set-connection role=ovn-controller pssl:6642 \
                             read-only role= ptcp:7777 \
                             read-write punix:/tmp/foo

As with the "read-only"/"read-write" attributes, the specified
role is applied to all subsequent connections until changed.

Signed-off-by: Lance Richardson <lrichard@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
ovn/utilities/ovn-sbctl.c