[ovs-git] [openvswitch/ovs] f7c5e0: ovn-util: Add a new util function extract_ip_addre...

GitHub noreply at github.com
Tue May 2 23:07:20 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: f7c5e0db6ef790d146e844da220ebc829346687f
      https://github.com/openvswitch/ovs/commit/f7c5e0db6ef790d146e844da220ebc829346687f
  Author: Numan Siddique <nusiddiq at redhat.com>
  Date:   2017-05-02 (Tue, 02 May 2017)

  Changed paths:
    M ovn/lib/ovn-util.c
    M ovn/lib/ovn-util.h

  Log Message:
  -----------
  ovn-util: Add a new util function extract_ip_addresses

An upcoming commit will use this function to extract the IP (v4 and
v6) addresses from a string without a preceding eth address.

Signed-off-by: Numan Siddique <nusiddiq at redhat.com>
Acked-by: Ben Pfaff <blp at ovn.org>
Signed-off-by: Ben Pfaff <blp at ovn.org>


  Commit: ea991ad220e494812093a71f17ef51e2a7b6324c
      https://github.com/openvswitch/ovs/commit/ea991ad220e494812093a71f17ef51e2a7b6324c
  Author: Numan Siddique <nusiddiq at redhat.com>
  Date:   2017-05-02 (Tue, 02 May 2017)

  Changed paths:
    M include/ovn/actions.h
    M lib/packets.h
    M ovn/controller/pinctrl.c
    M ovn/lib/actions.c
    M ovn/ovn-sb.ovsschema
    M ovn/ovn-sb.xml
    M ovn/utilities/ovn-sbctl.c
    M ovn/utilities/ovn-trace.c
    M tests/ovn.at

  Log Message:
  -----------
  ovn-controller: Add 'dns_lookup' action

This patch adds a new OVN action 'dns_lookup' to support native DNS.
ovn-controller parses this action and adds a NXT_PACKET_IN2
OF flow with 'pause' flag set.

A new table 'DNS' is added in the SB DB to look up and resolve
the DNS queries. When a valid DNS packet is received by
ovn-controller, it looks up the DNS name in the 'DNS' table
and if successful, it frames a DNS reply, resumes the packet
and stores 1 in the 1-bit subfield. If the packet is invalid
or cannot be resolved, it resumes the packet without any
modifications and stores 0 in the 1-bit subfield.

reg0[4] = dns_lookup(); next;

An upcoming patch will use this action and adds logical flows.

Signed-off-by: Numan Siddique <nusiddiq at redhat.com>
Acked-by: Gurucharan Shetty <guru at ovn.org>
Signed-off-by: Ben Pfaff <blp at ovn.org>


  Commit: 302eda27210abfb0c56ead8ee470e5329c77e795
      https://github.com/openvswitch/ovs/commit/302eda27210abfb0c56ead8ee470e5329c77e795
  Author: Numan Siddique <nusiddiq at redhat.com>
  Date:   2017-05-02 (Tue, 02 May 2017)

  Changed paths:
    M NEWS
    M ovn/northd/ovn-northd.8.xml
    M ovn/northd/ovn-northd.c
    M ovn/ovn-nb.ovsschema
    M ovn/ovn-nb.xml
    M ovn/utilities/ovn-nbctl.c
    M tests/ovn.at

  Log Message:
  -----------
  ovn-northd: Add logical flows to support native DNS

OVN implements native DNS resolution which can be used to resolve the
internal DNS names belonging to a logical datapath.

To support this, a new table 'DNS' is added in the NB DB. A new column
'dns_records' is added in 'Logical_Switch' table which references to the
'DNS' table.

Following flows are added for each logical switch if configured with
DNS records in the 'dns_records' column
 - A logical flow in DNS_LOOKUP stage which uses the action 'dns_lookup'
   to transform the DNS query to DNS reply packet and advances
   to the next stage - DNS_RESPONSE.

 - A logical flow in DNS_RESPONSE stage which implements the DNS responder
   by sending the DNS reply from previous stage back to the inport.

Signed-off-by: Numan Siddique <nusiddiq at redhat.com>
Acked-by: Gurucharan Shetty <guru at ovn.org>
Signed-off-by: Ben Pfaff <blp at ovn.org>


Compare: https://github.com/openvswitch/ovs/compare/2f4f43bfddfd...302eda27210a


More information about the git mailing list