I executed in the onos cli the following command:
onos> add-host-intent -b 5000000 52:54:00:DF:97:69/None 52:54:00:7B:4A:8F/None
Host to Host intent submitted:
HostToHostIntent{id=0x200000, key=0x200000, appId=DefaultApplicationId{id=2, name=org.onosproject.cli}, priority=100, resources=[52:54:00:DF:97:69/None, 52:54:00:7B:4A:8F/None], selector=DefaultTrafficSelector{criteria=[]}, treatment=DefaultTrafficTreatment{immediate=[NOACTION], deferred=[], transition=None, meter=None, cleared=false, metadata=null}, constraints=[LinkTypeConstraint{inclusive=false, types=[OPTICAL]}, BandwidthConstraint{bandwidth=5000000}], one=52:54:00:DF:97:69/None, two=52:54:00:7B:4A:8F/None}
onos>
It seems that the call is accepted. But when I call the summary command there are no flows or intent installed:
onos> summary
node=127.0.0.1, version=1.7.0
nodes=1, devices=3, links=6, hosts=2, SCC(s)=1, flows=9, intents=0
onos>
It is the same summary before the add-host-intent call. I checked the karaf log and see many exceptions. I added some logs here. What is wrong here?
Thanks for help.
Best regards,
Hakan
--
You received this message because you are subscribed to the Google Groups "ONOS Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-dev+u...@onosproject.org.
To post to this group, send email to onos...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-dev/.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/onos-dev/7309153f-b7fe-49d0-8350-ef27f1c58429%40onosproject.org.
<karaf.log>
Hi,
can anyone say me which instruction in a flow ruloe I can use to add bandwidth limit in a flow rule?
Thanks,
Hakan
Hi Hakan,
Thanks for the info. I’ll update the jira ticket and let you know if there’s any progress on fixing this issue.
You
On Oct 19, 2016, at 1:26 AM, Hakan Calim <hakan...@fau.de> wrote:
Hi You,
I have no ONOS JIRA account. I try to describe here my test scenario. maybe you can add this as a comment:
1. I have a test enviroment with 3 physical OpenFllow switches. They are connected as a triangle. Every swith has one host connected. All switches are controlled by the same ONOS controller.
2. On the controller host I get a clone of the onos repository. I build the ONOS system with the 1.7.0. For build instructions I used this documentation: https://wiki.onosproject.org/display/ONOS/Installing+and+Running+ONOS
3. After build I adde this to my local file: .profile:
export ONOS_ROOT=~/onos
source $ONOS_ROOT/tools/dev/bash_profile
export ONOS_APPS=drivers,openflow,proxyarp,mobility
4. Started ONOS with the following command: ok clean
5. Then I executed this command to see what is known by ONOS:
onos> summary
node=127.0.0.1, version=1.7.0
nodes=1, devices=3, links=6, hosts=0, SCC(s)=1, flows=9, intents=0
onos>
6. I see that the hosts are not recognized by ONOS. Therefore I started the ping command on a host which is connected on a switch. The ping was not successfully because there are no flows or intents are installed for the hosts.
7. Executed again the summary command again to see if the hosts are recognized. They are. Additionally I executed the hosts command to get information from the hosts:
onos> summary
node=127.0.0.1, version=1.7.0
nodes=1, devices=3, links=6, hosts=2, SCC(s)=1, flows=9, intents=0
onos> hosts
id=52:54:00:7B:4A:8F/None, mac=52:54:00:7B:4A:8F, location=of:000244319265b549/8, vlan=None, ip(s)=[10.0.10.2]
id=52:54:00:DF:97:69/None, mac=52:54:00:DF:97:69, location=of:000378485966e180/12, vlan=None, ip(s)=[10.0.10.1]
onos>
8. Try to install intent for this hosts with the bandwith parameter:
onos> add-host-intent -b 5000000 52:54:00:DF:97:69/None 52:54:00:7B:4A:8F/None
Host to Host intent submitted:
HostToHostIntent{id=0x0, key=0x0, appId=DefaultApplicationId{id=2, name=org.onosproject.cli}, priority=100, resources=[52:54:00:DF:97:69/None, 52:54:00:7B:4A:8F/None], selector=DefaultTrafficSelector{criteria=[]}, treatment=DefaultTrafficTreatment{immediate=[NOACTION], deferred=[], transition=None, meter=None, cleared=false, metadata=null}, constraints=[LinkTypeConstraint{inclusive=false, types=[OPTICAL]}, BandwidthConstraint{bandwidth=5000000}], one=52:54:00:DF:97:69/None, two=52:54:00:7B:4A:8F/None}
onos>
9. I get no errors. Therefore I checked again with the summary command if the intent is successfully installed.
onos> summary
node=127.0.0.1, version=1.7.0
nodes=1, devices=3, links=6, hosts=2, SCC(s)=1, flows=9, intents=0
onos>
10. No intent or flows are installed. I try to install the intent without the bandwith parameter and this works fine.
Hope this helps.
Best regards,
Hakan
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/onos-dev/2366f837-92e6-4e8e-b7da-07b69f90e656%40onosproject.org.