How to get an ovs port's mac address


Brady Johnson
 


Hello,

I have a data change listener listening for changes to network-topology nodes. The listener successfully receives OVS Manager connections, OVS bridge creations, and OVS bridge port (TerminationPoint and OvsdbTerminationPointAugmentation) creations. 

When an OVS bridge port is created, I would also like to get the MAC address, but see that the MAC address is not available in the TerminationPoint, as follows:

"termination-point": [
    {
        "tp-id": "veth2-br",
        "ovsdb:ofport": 3,
        "ovsdb:port-uuid": "ddd3a8d3-29b0-40d3-9f25-21c976a19477",
        "ovsdb:ifindex": 10,
        "ovsdb:interface-uuid": "1ee602bd-2661-4dea-b4ed-03c0e6ea011e",
        "ovsdb:name": "veth2-br",
        "ovsdb:ingress-policing-rate": 0,
        "ovsdb:ingress-policing-burst": 0
    },


I noticed that the MAC address is available in the Inventory node node-connector model, as follows, but is this the best approach?

"node-connector": [
    {
        "id": "openflow:222969675150665:2",
        "flow-node-inventory:hardware-address": "4a:c7:ce:4e:a6:a4",
        ...
    }

FYI Im using OVS 2.8 and am not integrating ODL with OpenStack for this application.


Regards,

Brady Johnson

Screenshot 2017-02-14 at 10.43.55 AM.png



Vishal Thapar <vthapar@...>
 

Good catch Brady. Yes, we don't have it in OVSDB but should be easy enough to add. As per OVS Schema [1] I believe the field you're looking for is mac_in_use.

Could you raise an enhancement request for this in Jira?

Regards,
Vishal.



On Fri, Apr 13, 2018 at 8:51 PM, Brady Johnson <bjohnson@...> wrote:

Hello,

I have a data change listener listening for changes to network-topology nodes. The listener successfully receives OVS Manager connections, OVS bridge creations, and OVS bridge port (TerminationPoint and OvsdbTerminationPointAugmentation) creations. 

When an OVS bridge port is created, I would also like to get the MAC address, but see that the MAC address is not available in the TerminationPoint, as follows:

"termination-point": [
    {
        "tp-id": "veth2-br",
        "ovsdb:ofport": 3,
        "ovsdb:port-uuid": "ddd3a8d3-29b0-40d3-9f25-21c976a19477",
        "ovsdb:ifindex": 10,
        "ovsdb:interface-uuid": "1ee602bd-2661-4dea-b4ed-03c0e6ea011e",
        "ovsdb:name": "veth2-br",
        "ovsdb:ingress-policing-rate": 0,
        "ovsdb:ingress-policing-burst": 0
    },


I noticed that the MAC address is available in the Inventory node node-connector model, as follows, but is this the best approach?

"node-connector": [
    {
        "id": "openflow:222969675150665:2",
        "flow-node-inventory:hardware-address": "4a:c7:ce:4e:a6:a4",
        ...
    }

FYI Im using OVS 2.8 and am not integrating ODL with OpenStack for this application.


Regards,

Brady Johnson

Screenshot 2017-02-14 at 10.43.55 AM.png



_______________________________________________
ovsdb-dev mailing list
ovsdb-dev@....org
https://lists.opendaylight.org/mailman/listinfo/ovsdb-dev



Brady Johnson
 

Done, here's the JIRA feature request: https://jira.opendaylight.org/browse/OVSDB-457

Regards,

Brady Johnson

Screenshot 2017-02-14 at 10.43.55 AM.png



On Fri, Apr 13, 2018 at 11:39 AM, Vishal Thapar <vthapar@...> wrote:
Good catch Brady. Yes, we don't have it in OVSDB but should be easy enough to add. As per OVS Schema [1] I believe the field you're looking for is mac_in_use.

Could you raise an enhancement request for this in Jira?

Regards,
Vishal.



On Fri, Apr 13, 2018 at 8:51 PM, Brady Johnson <bjohnson@...> wrote:

Hello,

I have a data change listener listening for changes to network-topology nodes. The listener successfully receives OVS Manager connections, OVS bridge creations, and OVS bridge port (TerminationPoint and OvsdbTerminationPointAugmentation) creations. 

When an OVS bridge port is created, I would also like to get the MAC address, but see that the MAC address is not available in the TerminationPoint, as follows:

"termination-point": [
    {
        "tp-id": "veth2-br",
        "ovsdb:ofport": 3,
        "ovsdb:port-uuid": "ddd3a8d3-29b0-40d3-9f25-21c976a19477",
        "ovsdb:ifindex": 10,
        "ovsdb:interface-uuid": "1ee602bd-2661-4dea-b4ed-03c0e6ea011e",
        "ovsdb:name": "veth2-br",
        "ovsdb:ingress-policing-rate": 0,
        "ovsdb:ingress-policing-burst": 0
    },


I noticed that the MAC address is available in the Inventory node node-connector model, as follows, but is this the best approach?

"node-connector": [
    {
        "id": "openflow:222969675150665:2",
        "flow-node-inventory:hardware-address": "4a:c7:ce:4e:a6:a4",
        ...
    }

FYI Im using OVS 2.8 and am not integrating ODL with OpenStack for this application.


Regards,

Brady Johnson

Screenshot 2017-02-14 at 10.43.55 AM.png



_______________________________________________
ovsdb-dev mailing list
ovsdb-dev@...rg
https://lists.opendaylight.org/mailman/listinfo/ovsdb-dev