3155 Commits

Author SHA1 Message Date
Carmelo Cascone
10db17eaa1 Removed P4Runtime test app
Change-Id: I4fee64c524f477f0af02d003bd0d60806e7e029f
2018-06-22 14:51:29 +02: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
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
Jian Li
0b56428c20 Add REST interface for synchronizing openstack states and rules
Change-Id: I42cd8c73130348b204ea7c98c98d5b16cca6c4e8
2018-06-20 23:43:47 +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
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
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
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
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
Carmelo Cascone
6af4e17c53 Bumped supported revisions of P4 tools
Includes:
- Use new P4Runtime "v1" package names
- Removed VALID match
- New table entry priority spec (1 is min priority, not 0)
- Fixed p4c-bm2-ss to include arch flag
- Re-compiled P4 programs with more recent p4c (with updated p4info)

Change-Id: I05908f40eda0f0c755009268fd261fb8bcc9be35
2018-06-15 19:04:30 +00:00
Ray Milkey
25747d88f7 Implement bazel support for web context
- add web context to OSGI rules
- build ACL app
- build DHCP app

Change-Id: I03687d109eb44621458ad7269a435e03eec47495
2018-06-15 09:01:35 -07:00
Ray Milkey
68bc3b0200 Bazel build of route-service tests
Change-Id: I453d5d9943dd616e300001887e27d6fa6474c814
2018-06-13 17:57:24 +00:00
Ray Milkey
15053f0fca buildifier formatting of bazel files
Change-Id: I8196aa52ee640d1c500307a50a0ab4921138b69b
2018-06-13 17:57:14 +00:00
Sangyeok Sim
61ac5703fa Correcting typo
Change-Id: I989d11a1f1d4bf006f52b99d218a245249244d1c
2018-06-13 17:52:07 +00:00
Ray Milkey
02a658bb4a Build segment routing app with bazel
- add support for apps depending on other apps
- build files for route-service and segment routing

Change-Id: I4850aacfe050f802072e2d59a6a21bcefd784e67
2018-06-13 16:23:14 +00:00
Arturo F de Velasco
60af96a74e answer to questions for self-checking
Change-Id: I9fab290e7ff3417e6523596d3df00dd757132ded
2018-06-13 13:01:07 +00:00
sdn
a0138f506a add logs in VtnManager to avoid return null silently
ONOS-7714

Change-Id: I22e86b8875581253eea83d2865bf7a7b33e5fe08
2018-06-13 03:56:37 +00:00
Andreas Pantelopoulos
7fba877401 Made the l2 handler use the new logic for pw trans.
- refactored l2 handler to *only* program initiation and termination
  points and nothing else.
- all pseudowires are set to be carried wiht PSEUDOWIRE_VLAN fetched
  from srManager.

Change-Id: I811370f21156a9ca4d42becb1f9401dbeb4fdc33
2018-06-12 19:42:27 -07:00
Andreas Pantelopoulos
5bf1366410 Various pseudowire fixes and improvements.
- Co-ordination when creating - removing pseudowires from
  different instances with a use of a DistributedLock.
- Fixed REST API To return json with specific error for
  the single pw instantiation.
- Fixed REST API to return specific error also for pseudowires
  that could not be decoded.
- Minor bug fix to return appropriate error when instantiating
  a pw from the command line that could not be decoded.
- Fixed bug when creating spine-leaf-leaf pseudowire where we observed flows in pending state.
- Improved logging.

Change-Id: I60dd0ebf8af63ca74d18cfe4801d01846641fb7b
2018-06-13 02:22:58 +00:00
Ray Milkey
1ccab71e32 Bazel support for apps with more than one included artifact
Change-Id: I2972772517a9b5f7f1fac52b9c00123689c0881c
2018-06-12 17:58:45 -07:00
Daniel Park
d1b14d3140 Fix: Avoid from deleting flat jump rules even if there are remained vm's in same host
Change-Id: Ia36f4a861454a8c7aeb7b70c4fcaaecc13891865
2018-06-12 16:40:04 +09:00
Ray Milkey
12ae6cae9f Start on implementation of apps with multiple included bundles
Change-Id: I8fc8474d5f2ff1b45e0dccfbe3fc20e27cc9000b
2018-06-12 02:09:35 +00:00
Daniel Ginsburg
83b764524c DHCPv[46] relay must replace the route instead of adding an extra NH
Currently DHCP relay adds an extra next-hop to an already existing route (if any). Instead
it must replace it with the new one.

This patch adds replaceRoute method to the RouteStore interface and corresponding implementations.
The DHCP relay implementation uses the new method instead of updateRoute

Change-Id: I601613168b83290db4e53d2aae5c86e963ae17b0
2018-06-11 17:01:57 -07:00
Jordan Halterman
3b1373715b Change DefaultRouteTable primitive to cached multimap.
Change-Id: I4b29f95894a5f761a59bebbd9aa6ea778a128f22
2018-06-11 17:01:57 -07:00
Ray Milkey
1d52dddd41 Bazel support for ONOS applications and OAR files
Change-Id: Ic938dded82a68aa75d5f5df18363f3127a36d1ef
2018-06-11 22:33:56 +00:00
Jianwei Mao
fd9f74417e [ONOS-7685]Improve failure inspection template for P4 Runtime developer
If P4InfoParser fail to parse p4info file, the parser will pass exact exception message to Apps by Cause of P4InfoParserException.

So, developer must use P4InfoParserException.getCause().getMessage() to gain exact failure cause.

This is hard to be reminded, especially when it is packed into IllegalStateException or other Exception class.

Change-Id: Ica9cd24521a9eb8700cd1cbfce573631c30cbff2
2018-06-11 22:01:35 +00:00
Jian Li
f3a28b0c36 Fix: remove FixedIpAddress associated with FloatingIp when purge VM
Change-Id: Ie48a0ec2694302e900755cccece9181f52386bc9
2018-06-11 23:02:53 +09:00
Jian Li
a171a43519 Fix: install flow rules to corresponding GW by listening fip events
Change-Id: Iece92a37181b1c4bf71a55ffd00b8bb080ae2fa9
2018-06-11 04:50:23 +00:00
Sangyeok Sim
7ff935ec7c remove extra semicolons
Change-Id: I28a033c97970cccfad10cfa68d4a7737f8d0d674
2018-06-11 04:42:19 +00:00
Ray Milkey
9dc5739c3f Sonar suggestion - Don't use a mutable collection in a public interface
Change-Id: I6f73f665cff20e558a8ec2f3cd319e4d9b00bb58
2018-06-11 04:42:00 +00:00
hiroki
fca084bf9a Add device config change request using NetCfg
Change-Id: I01ae9caf298e606333ea31b2b480d744a2815c76
2018-06-08 22:42:45 +00:00
Sangyeok Sim
cd125ded3b ACL Input param validation for L4 port
Change-Id: I5862aab56404afaf4d36e982a0259a498fdab216
2018-06-08 20:11:19 +00:00
Jian Li
52c1122305 [ONOS-7683] Add unit tests for a set of telemetry config classes
Change-Id: I73ad36e02044371a2fb87540e28ef2257a6dba92
2018-06-08 07:18:24 +00:00
Jian Li
2cf1c0b150 [ONOS-7683] Implement various default telemetry configs
Change-Id: Ibfd222be32e9fb7cb29833f9b0d369abaa6e814d
2018-06-08 07:18:17 +00:00