diff options
author | Jakub Sitnicki <jkbs@redhat.com> | 2018-07-30 16:37:47 +0200 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2018-07-31 11:22:52 -0700 |
commit | f67d9e66e7e06facad32cb16382150929ca7db22 (patch) | |
tree | bab00b7d508e5941877a4cdd0ca4c327ebbe70c8 /ovn | |
parent | 1a7f7969d397b21943977aa02da927a299fc8e76 (diff) | |
download | openvswitch-f67d9e66e7e06facad32cb16382150929ca7db22.tar.gz |
ovn-nbctl: Allow referring to port groups by name.
Be user-friendly and allow using port group's name as its identifier in
database commands.
Signed-off-by: Jakub Sitnicki <jkbs@redhat.com>
Acked-by: Han Zhou <hzhou8@ebay.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ovn')
-rw-r--r-- | ovn/utilities/ovn-nbctl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ovn/utilities/ovn-nbctl.c b/ovn/utilities/ovn-nbctl.c index 6b5ed4226..c0455329f 100644 --- a/ovn/utilities/ovn-nbctl.c +++ b/ovn/utilities/ovn-nbctl.c @@ -4513,6 +4513,9 @@ static const struct ctl_table_class tables[NBREC_N_TABLES] = { [NBREC_TABLE_ADDRESS_SET].row_ids[0] = {&nbrec_address_set_col_name, NULL, NULL}, + [NBREC_TABLE_PORT_GROUP].row_ids[0] + = {&nbrec_port_group_col_name, NULL, NULL}, + [NBREC_TABLE_ACL].row_ids[0] = {&nbrec_acl_col_name, NULL, NULL}, }; |