12790 Commits

Author SHA1 Message Date
Carmelo Cascone
3c216fa4f4 Fixed bmv2.py assigning gRPC/Thrift port already in use
Also handle Mininet exceptions by shutting down all BMv2 instances

Change-Id: I5a8d1a06441daa57c5dd3b0861f1b7484828174a
2018-06-22 14:52:15 +02:00
Carmelo Cascone
10db17eaa1 Removed P4Runtime test app
Change-Id: I4fee64c524f477f0af02d003bd0d60806e7e029f
2018-06-22 14:51:29 +02:00
Andrea Campanella
d59f36ce06 Fixing XXE attacks through NETCONF Alarms
Change-Id: I3426ebfe4ede9e4a13f753be6ba2b73e3db70876
2018-06-22 07:34:26 +00:00
Sean Condon
2bd11b79bf Implemented table building functions
Change-Id: Ie4003080b13725561df22de41ec85f8c3f31c794
2018-06-22 07:15:36 +00:00
Yi Tseng
667538d4ea
[ONOS-7724] Incorrect priority check in PiFlowRuleTranslator
Change-Id: Ib927bd52959b3d128060960c5e048ea5afc7a52a
2018-06-22 02:19:23 +08:00
Yi Tseng
bf0d437423
[ONOS-7723] Intrepreter can not handle Treatment of VLAN meta table
Change-Id: Iba0c4eab8d35d93aaa1b00d30a398709acde1a13
2018-06-21 23:55:58 +08:00
Jian Li
e1a390338f Fix: remove floating IP related rules only if the instance was removed
Change-Id: Ibe1a14372ef245872400c0dfca40dbc4c41a646c
2018-06-21 09:40:27 +00:00
Ray Milkey
324af9301f Bazel build files for protocols
Change-Id: I12a9cfe2d135d10c640a51d9b3438bcd92f8e37f
2018-06-21 03:48:25 +00:00
Jian Li
9a921b419c [ONOS-7684] Support VM Live Migration (FLAT)
Change-Id: I991e82db6439a271dcef723e098318c5d150a87a
2018-06-21 03:01:22 +00:00
Jian Li
24ec59f4fd [ONOS-7684] Support VM Live Migration (VxLAN + VLAN)
Change-Id: I4717f0af6731b41eaf3114994f2087af74c3e3f5
2018-06-21 03:01:10 +00:00
Ray Milkey
b7949e7a98 Generate a test rule to run checkstyle for an onos jar file
Change-Id: I21da8d353d592de847cc019875baa59786500cfe
2018-06-21 02:50:51 +00:00
Jian Li
d1ce10ad9e [ONOS-7683] Initial implementation of openstack telemetry service
Change-Id: I621bed9cff108af194998b7a1e8269a9a6ffd32c
2018-06-21 01:20:33 +00:00
Jian Li
4a3fffad43 [ONOS-7683] Add JSON codecs for FlowInfo and StatsInfo with tests
Change-Id: I12560e5f72e704a72a59465de347ddb32051aabb
2018-06-21 01:20:12 +00:00
Jian Li
3db9085941 [ONOS-7683] Add missing toString methods for telemetry configs
Change-Id: Iff17acf7b5698669ae8f753bce5a402bad06fd5c
2018-06-21 00:58:03 +00:00
Jian Li
6bd3510dd9 [ONOS-7683] Add ByteBuffer codec of StatsInfo and FlowInfo w/ tests
Change-Id: Ifbc09093954c8f1c073febc8199b2013e3d01714
2018-06-21 00:57:25 +00:00
shalde064
280feecf19 ONOS core changes for RIP support
Change-Id: I5aa22ed6509d99af22d7cb80944bc3a4c26b5257
2018-06-21 00:54:20 +00:00
Jian Li
0a5d4d2883 [ONOS-7683] Add FlowInfo and StatsInfo impls with unit tests
Change-Id: I86327507c528a9b7eea60af858ccfb1fb4b2f8ce
2018-06-21 00:26:21 +00:00
Jian Li
6803ccd522 [ONOS-7683] Add default implementation of telemetry managers
Change-Id: I2f16c53c9467df56c324a208af8a5258a36f7604
2018-06-21 00:26:01 +00:00
Jian Li
4df75b1d1e [ONOS-7683] Add default implementation of telemetry config managers
Change-Id: Iac3681ceff2b343746d2d0b1043300044043b63a
2018-06-21 00:25:51 +00:00
Jian Li
b9fe349f54 [ONOS-7683] Add a set of empty telemetry config managers with intfs
Change-Id: Ib3dca1f1aa8f69c121c295af3c77d9c50bb032d4
2018-06-21 00:25:34 +00:00
Jian Li
8abf2fea27 Extend the SONA pipeline to support gathering vFlow stats
Change-Id: Iee5f5fbcd96fb9d23226e837bebf2c4699c063de
2018-06-21 00:24:51 +00:00
Charles Chan
c7b3c451c7 Implement CLI and REST API for Xconnect
Deprecate the old way of configuring Xconnect via network config

Change-Id: I5b9ac7852517c25805bcbfc0e7b3bec3a52eed9f
2018-06-21 00:20:25 +00:00
Charles Chan
f76de30781 Improve Xconnect to support BSOD use case
- Push ACL flow to ignore xconnect VLAN
- Add pair port to the L2FG internally
- Remove the ETH_TYPE restriction in OFDPA processVersatile
- Remove the NOACTION warning in OFDPA processVersatile
- Do not push bridging flow for hosts that have wrong VLAN tag

Known issue:
- flooding issue on the pair port
- tagged host will be learnt before xconnect config is pushed (will be ignored by SR)

Change-Id: I30e4f46e54daa0f7bd349419df100523dceb2c4c
2018-06-21 00:20:25 +00:00
Charles Chan
f2f8ef043b Fix ConcurrentModificationException
Change-Id: Ie4c3a56312156ded1cbc2fd8a0e4da822ff57205
2018-06-21 00:20:25 +00:00
Charles Chan
6a7d3677f2 Improve KryoNamespaces to better support Objectives and lambda functions
Change-Id: Iaeb10d8e237e4c2bca972e97f65bb0fc1cf338f9
2018-06-21 00:20:25 +00:00
Jian Li
0b56428c20 Add REST interface for synchronizing openstack states and rules
Change-Id: I42cd8c73130348b204ea7c98c98d5b16cca6c4e8
2018-06-20 23:43:47 +00:00
Carmelo Cascone
5bdb651370 Disabling P4Runtime meters until ONOS-7720 is fixed
Change-Id: Ia0f9878e5a61252016f6b6d88f634f91993f37d2
2018-06-20 20:44:56 +00:00
Carmelo Cascone
e6a9754787 Better logging when configuring the FlowRuleManager
Change-Id: I7da22b1bf796a7199acc5a55c21f6a5334f312d4
2018-06-20 20:44:46 +00:00
Saurav Das
137f27f0e7 Bugfix in routing logic to avoid null groups; Improvement in group handling.
Two main changes for the bug-fix:
    - avoid doing a full-reroute in the event of link failure as this will leave behind stale state in stores
      if event has been preceded by mastership change leading to the nuking of the ecmpSpg for one of the
      link's devices; instead do a rehash
    - when full-reroute is attempted, do it only once, with a complete nuke of the next-obj store

Improvement in group handling allows for a max number of retries for a group that failed to be added.
Earlier behavior was to try only once, and if it fails, it gets removed from the group-store. Now it
is removed after a couple of retries - so total 3 attempts to program the group.

Change-Id: I54ca8203cef779463522b01353540d12f8be3c91
2018-06-20 17:48:32 +00:00
Charles Chan
5adc628bd3 Refactor DefaultRoutingHandler to avoid hitting 2000 lines limit
Change-Id: I426e7fc70dcc063bd5742f86ba1141adf6d1d94e
2018-06-20 17:48:03 +00:00
Ray Milkey
275af2c8ff Implement bazel rules for generation of swagger files
Change-Id: I0e5d33174898cc6a1bbca475f2e1696c4fdda1ca
2018-06-20 09:41:24 -07:00
Laszlo Papp
18efc97613 Add flow support to the Polatis SNMP driver
Change-Id: I150e174acd54c945c95ca9a1885f1f6313d44ce9
2018-06-20 14:49:40 +00:00
Carmelo Cascone
4bf427f58a Recompiled P4 tutorial pipeconf to work with new P4 tools revisions
Change-Id: I2f1e5f49233f095148990eddee098bfd406a5cf6
2018-06-19 21:47:16 +00:00
Carmelo Cascone
8a51743927 Removed fabric.p4 data plane test files
Now living in separate fabric-p4testrepo:
https://github.com/opennetworkinglab/fabric-p4test

Change-Id: I333906fe36b02a6ea5efed86b6dcd59405bffb17
2018-06-19 21:47:02 +00:00
Carmelo Cascone
df32beae1e Fixed AttributeError when logging bmv2 crash in bmv2.py
Change-Id: Ia899a0e5090d3f27694b65f2a75f06500a0b6fec
2018-06-19 21:03:34 +00:00
Jordan Halterman
e76f0c8559 Fix NPE in ClusterCommunicationManager exception handling
Change-Id: I4dd3c6aeb3150e117e2ba414c8d2a58adef79170
(cherry picked from commit 7b3830bef35b703ba411684f1f10c291d5a22f61)
2018-06-19 18:58:30 +00:00
Yuta HIGUCHI
4f55c67c98 NetconfSession refactoring
- Move netconf rpc envelope processing common across secure transport implementation
  to AbstractNetconfSession
  work by: Palash Kala <palash.kala@samsung.com>

Change-Id: I5f0d6adecf6224ae44f224291f645725b3c87739
2018-06-19 17:42:09 +00:00
Eder Ollora
319b9bfe3e Fixed URL for p4.vim in tutorial script
Change-Id: Ia7a174edfd63ba677fce81fc91b4463cfc62d813
2018-06-19 15:06:39 +00:00
Carmelo Cascone
228092b190 Refactored fabric PipeconfLoader to automatically build pipeconfs
Fabric.p4 is evolving in a way that will allow multiple profiles (e.g.
fabric, fabric-spgw, fabric-int, etc). Moreover, we need to support
multiple targets (e.g. BMv2, Tofino, etc.) as well as platforms
(variant of a target). Maintaining a pipeconf for each
profile/target/platform is time-consuming.

The new PipeconfLoader automatically builds pipeconfs based on the
available p4c compiler outputs available in the 'resources' directory.
This approach removes the need to maintain separate pipeconfs like
fabric-pro. Those interested in using fabric.p4 with targets other than
BMv2, will simply need to place the appropriate target/platform-specific
P4 compiler outputs in the resource directory.

Change-Id: I58d208a1837e747357373b2296cb950f13799ed6
2018-06-19 15:05:43 +00:00
Andreas Pantelopoulos
b251801737 Configuration option respondToUnknownHosts.
Set this option to true to respond to arp requests
for unknown hosts [Default Value = True].

Change-Id: Ia2f10b2fae22b65cd2ec12a04accd9ad0ec15109
(cherry picked from commit 7bf9e441bdc4c7ac420f2a59e4d176005a40d020)
2018-06-18 20:48:05 +00:00
Ray Milkey
7ced85e10a Add new dependencies to the maven build
Change-Id: Iceb0adcabd8f17b5bd326b1899379d8e88142ed7
2018-06-18 17:06:28 +00:00
Ray Milkey
cc7a176d85 Fix some sonar suggestions
- use long arithmetic for long expressions
- exit routine after determining that a pointer is null

Change-Id: I755b1533773f6838e88ba94ced376f30576c275b
2018-06-18 08:54:51 -07:00
Laszlo Papp
10f0d51401 Fix the snmp alarms on device configuration
Change-Id: Ia15df8cf2c112e00f7d6930272a97cb447e98fe8
2018-06-18 15:39:46 +01:00
donghyeok.ho
a73e5c31de Src/dst port range of fiveTuple in SfcManager was not validated correctly.
ONOS-7716

Change-Id: I02a69231eda3cb7fe28721604dfe6251731bf374
2018-06-18 09:05:25 +00:00
Yi Tseng
34af3168f4
Fix incorrect defined boolean value for fabric.p4
Change-Id: I59cfbd81c1818f489d1fcded187d0ca034d418f8
2018-06-17 18:02:21 +08:00
Alessio Giorgetti
648b538ed8 Lumentum ROADM-20 Whitebox, NETCONF driver supporting ROADM app main functionalities
Change-Id: Iee24a3db7ebd948a251f74c91e4b5de57b8f1b19
2018-06-15 22:15:50 +00:00
Andreas Pantelopoulos
194164153f Disable host learning feature.
This patch gives us the ability to disable
host learning in certain ports via the ports
configuration.

We have the following cases :
        - Discover a host with no learning configuration, this
          results to learned host (missing config assumes learning is on)
        - Discover a host with learning configuration set to false,
          do not learn that host.
        - Update the learning configuration of a CP to false. Then,
          fetch all host at that location, if these hosts are not
          configured statically at this location, remove them

Change-Id: I2a05ce5f9a890bb4049fd7856f95d78f467e3330
2018-06-15 21:43:39 +00:00
Ray Milkey
1bbe4615a6 Fix bazel build of p4 runtime protos
Change-Id: I72f8dc332fe1cfff879a7378d0953cd872ee37ac
2018-06-15 14:14:39 -07:00
Ray Milkey
1f9e7dc1fe Fix maven build of P4 models
Change-Id: If7ed98261a1f3a18ea752e7ce401d155085650f3
2018-06-15 13:37:33 -07:00
Carmelo Cascone
35d9b333f8 Support compiling fabric.p4 with non-standard bool declarations
Change-Id: I5e579f58f274996fdff55d8e35d1dd96a7013941
2018-06-15 19:05:11 +00:00