Skip to content

Commit

Permalink
ovn-sbctl: enable listing dhcp options tables
Browse files Browse the repository at this point in the history
Enable operations (including "list") on DHCP_Options and DHCPv6_Options
tables via ovn-sbctl. These are currently the only OVN_Southbound
tables that ovn-sbctl does not support.

Example:
    $ ovn-sbctl -f table list DHCPv6_Options
    _uuid                                code name          type
    ------------------------------------ ---- ------------- ------
    8646bb15-5e88-4432-a21a-4e22a2976482 23   dns_server    "ipv6"
    564e98e9-ee23-447b-a7c5-c36ca05059fa 24   domain_search str
    8c6cb059-5bb5-4ef8-960b-f002c769589e 2    server_id     mac
    525e8fc6-7921-48eb-8bd3-fe5cb5dd0142 5    ia_addr       "ipv6"

Signed-off-by: Lance Richardson <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
hlrichardson authored and blp committed Jan 4, 2017
1 parent 84aa6cd commit 9c39b12
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ovn/utilities/ovn-sbctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,14 @@ static const struct ctl_table_class tables[] = {
{{&sbrec_table_address_set, &sbrec_address_set_col_name, NULL},
{NULL, NULL, NULL}}},

{&sbrec_table_dhcp_options,
{{&sbrec_table_dhcp_options, NULL, NULL},
{NULL, NULL, NULL}}},

{&sbrec_table_dhcpv6_options,
{{&sbrec_table_dhcpv6_options, NULL, NULL},
{NULL, NULL, NULL}}},

{&sbrec_table_connection,
{{&sbrec_table_connection, NULL, NULL},
{NULL, NULL, NULL}}},
Expand Down

0 comments on commit 9c39b12

Please sign in to comment.