I am trying to write some scripts that I can run to configure a setup I want within the Jacks default OVS image (
urn:publicid:IDN+emulab.net+image+emulab-ops:Ubuntu12-64-OVS). It appears that this image includes ovs 1.9.3.
Part of what I want to do is install some static flows that patch two ports in a vswitch together. The problem I currently have is that I don't know of how to determine which port names map to which OpenFlow port numbers at run time. I can look this up with ovs-ofctl, but I am hoping to do something more programmatic that doesn't require parsing of the ovs-ofctl output.
I saw that there is a command to request a specific OF number be assigned to an interface:
sudo ovs-vsctl set interface $INTERFACE ofport_request=$OFPORT
But when I run that command, I get the following error:
ovs-vsctl: Interface does not contain a column whose name matches "ofport_request"
I am assuming this just has to do with the ovs version being somewhat old.
Is there a standard way that people do this kind of thing with the default OVS image in GENI today?
Thanks,
--