Hi
I have a simple topology created using mininet which is connected to a single onos instance as controller:
h1 <-> s1 <-> h2
I try to add a host to host intent between h1 and h2 using command line:
onos> add-host-intent 2A:34:D1:AF:0F:55/None 56:7E:FB:CE:91:17/None
Host to Host intent submitted:
HostToHostIntent{id=0x0, key=0x0, appId=DefaultApplicationId{id=18, name=org.onosproject.cli}, priority=100, resources=[2A:34:D1:AF:0F:55/None, 56:7E:FB:CE:91:17/None], selector=DefaultTrafficSelector{criteria=[]}, treatment=DefaultTrafficTreatment{immediate=[NOACTION], deferred=[], transition=None, meter=None, cleared=false, metadata=null}, constraints=[LinkTypeConstraint{inclusive=false, types=[OPTICAL]}], one=2A:34:D1:AF:0F:55/None, two=56:7E:FB:CE:91:17/None}
The intent installs two flow rules:
onos> flows -n
deviceId=of:0000000000000001, flowRuleCount=2
id=450000513d18c0, state=ADDED, bytes=0, packets=0, duration=87, priority=100, tableId=0, appId=org.onosproject.net.intent, payLoad=null, selector=[IN_PORT:2, ETH_DST:56:7E:FB:CE:91:17, ETH_SRC:2A:34:D1:AF:0F:55], treatment=DefaultTrafficTreatment{immediate=[OUTPUT:1], deferred=[], transition=None, meter=None, cleared=false, metadata=null}
id=450000cfcf651f, state=ADDED, bytes=0, packets=0, duration=87, priority=100, tableId=0, appId=org.onosproject.net.intent, payLoad=null, selector=[IN_PORT:1, ETH_DST:2A:34:D1:AF:0F:55, ETH_SRC:56:7E:FB:CE:91:17], treatment=DefaultTrafficTreatment{immediate=[OUTPUT:2], deferred=[], transition=None, meter=None, cleared=false, metadata=null}
But I can not ping h1 from h2 or h2 from h1:
mininet> h2 ping h1
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
From 10.0.0.2 icmp_seq=1 Destination Host Unreachable
mininet> h1 ping h2
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
From 10.0.0.1 icmp_seq=1 Destination Host Unreachable
However, if I activate "fwd" app:
onos> app activate org.onosproject.fwd
Even though it installs the exact the same flow rules:
onos> flows -n
deviceId=of:0000000000000001, flowRuleCount=2
id=450000513d18c0, state=ADDED, bytes=882, packets=9, duration=347, priority=100, tableId=0, appId=org.onosproject.net.intent, payLoad=null, selector=[IN_PORT:2, ETH_DST:56:7E:FB:CE:91:17, ETH_SRC:2A:34:D1:AF:0F:55], treatment=DefaultTrafficTreatment{immediate=[OUTPUT:1], deferred=[], transition=None, meter=None, cleared=false, metadata=null}
id=450000cfcf651f, state=ADDED, bytes=882, packets=9, duration=347, priority=100, tableId=0, appId=org.onosproject.net.intent, payLoad=null, selector=[IN_PORT:1, ETH_DST:2A:34:D1:AF:0F:55, ETH_SRC:56:7E:FB:CE:91:17], treatment=DefaultTrafficTreatment{immediate=[OUTPUT:2], deferred=[], transition=None, meter=None, cleared=false, metadata=null}
Ping works:
mininet> h1 ping h2
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
64 bytes from
10.0.0.2: icmp_seq=1 ttl=64 time=0.060 ms
After deactivating "fwd" ping fails again. I was wondering what the problems may be.
I built onos commit 80244e5424663c4b85df95f221761947a92ee63b and installed it on Ubuntu version 16.04.