diff mbox

[ovs-dev] ovn-sbctl: enable listing dhcp options tables

Message ID 1483480068-27503-1-git-send-email-lrichard@redhat.com
State Accepted
Headers show

Commit Message

Lance Richardson Jan. 3, 2017, 9:47 p.m. UTC
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 <lrichard@redhat.com>
---
 ovn/utilities/ovn-sbctl.c | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Ben Pfaff Jan. 4, 2017, 6 p.m. UTC | #1
On Tue, Jan 03, 2017 at 04:47:48PM -0500, Lance Richardson wrote:
> 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 <lrichard@redhat.com>

Thanks, applied.
diff mbox

Patch

diff --git a/ovn/utilities/ovn-sbctl.c b/ovn/utilities/ovn-sbctl.c
index 9e3016b..d3db32f 100644
--- a/ovn/utilities/ovn-sbctl.c
+++ b/ovn/utilities/ovn-sbctl.c
@@ -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}}},