275 Commits

Author SHA1 Message Date
Jonathan Hart
ea75084f12 CORD fabric app
Change-Id: I2d261762b432170463e1dbc40432193cad28c9b2
2015-05-05 23:41:06 +00:00
Ayaka Koshibe
e114f04812 ConsistentLinkResourceStore to replace HazelcastLinkResourceStore. Also
includes:

 - typo fix (intendId -> intentId)
 - refactored ResourceAllocations command so it doesn't use error handling as
   part of control flow
 - add ability to compare LinkResourceAllocations

Reference: ONOS-1076

Conflicts:
	cli/src/main/java/org/onosproject/cli/net/ResourceAllocationsCommand.java

Change-Id: I6a68012d8d7d359ce7c5dcd31e80a3b9f63d5670
2015-05-01 21:00:09 +00:00
Jonathan Hart
c3af35a9b7 Add static factory method to create ConnectPoints from strings.
Change-Id: I743b4a4fb433ad07cf6f2cbed3da7b6e19a74ebb
2015-04-30 22:20:29 -07:00
Brian O'Connor
11ff870f7a Fixing add intent commands.
Use empty treatment if there are not explicit modifications.

Change-Id: I9062c592859adcaf3c9bb17f81de83f2778005de
2015-04-29 19:37:19 -07:00
Madan Jampani
5756c35469 Trivial logging change
Change-Id: I8166b5cb886c16b30ad28886a000525ab2059943

Enabling Raft based device mastership store

Change-Id: Ide4dc559aa241ec2f3fa587701f6f32ba6856218
2015-04-29 14:45:05 -07:00
Charles M.C. Chan
41aff9fb4a Pass the selector/treatment set by CLI to the HostToHostIntent
NOTE:
During PathIntent compilation, the ethSrc and ethDst in the selector will be overridden by the MAC of the end-points.
Also, an output action will be appended to the treatment.

Change-Id: Ie2e621b91203a49237e7466b919abedceb3e697d
2015-04-30 00:41:04 +08:00
Charles M.C. Chan
2d89eca55b Add auto-completer for add-host-intent command (ONOS-1756)
Change-Id: I6a3c34ef8c9829b2361d6ea96e94b9d7cc830db8
2015-04-29 21:32:17 +08:00
Charles M.C. Chan
2184de1e7f ONOS-1756: Improve CLI auto completers
- Add more ICMP types and codes
- Add completer for --icmp6Type
- Add completer for --icmp6Code
- Add completer for --extHdr
    It is a multiValued option.
    For example, the following command will match an IPv6 packet with both fragment and routing extension header:
    add-point-intent --ethType IPV6 --extHdr FRAG --extHdr ROUTING
    NOTE: OVS 2.3.1 does not support OFPXMC_OFB_IPV6_EXTHDR match field yet.
- Change parameter of TrafficSelector.matchIPv6ExthdrFlags() from int to short since that field is 9 bits only

Change-Id: I55944399f3985f2cc09330a726f21983de273341
2015-04-28 17:47:22 +00:00
Ayaka Koshibe
0d886fcaf6 Fixes/improvements:
- Leaders command uses candidateBoard keys when using -c (list candidates)
   option.
 - Bug fix for lock retry

Change-Id: I42730a85b720fc5023b9b07bef153d975c95d4df
2015-04-27 19:39:55 +00:00
Charles M.C. Chan
e9c8bbcf37 ONOS-1264 Expose IPv6 support at the ONOS CLI level
Change-Id: I12b16eb97b011899984fda00db229b5a8ff00fa3
2015-04-23 21:09:18 +00:00
alshabib
08d9898714 FlowRule api no longer uses TableTypes. Existing usages are converted to
integer representations via Type.ordinal() call

Change-Id: Ie2a26c5ced166e12f0e1ea22e39cd5195455a1ad
2015-04-21 23:52:19 +00:00
Charles M.C. Chan
6f5bdc6b88 Javadoc improvement
Change-Id: I4f767af36101c32493a77570a9729f4e8c300136
2015-04-21 18:16:54 +00:00
Thomas Vachuska
ce9808a43a Javadoc clean-up and apps -s command clean-up.
Change-Id: I6a4859fd05edb17a02333e4d68496d54589b586b
2015-04-21 09:33:26 -07:00
Madan Jampani
fd45d5e929 Use similar return types for LeadershipService.getCandidates() and LeadershipService.getCandidates(topic)
Change-Id: I9aaea9dfa14e4e9916103a61c8e59290ad656aa7
2015-04-20 23:54:22 +00:00
Jon Hall
e97083c388 Fix for ONOS-1715: NPE in nodes cli command
Change-Id: I5a1c4e3a73162ee34ede1ea1aba641898822adea
2015-04-20 15:22:30 -07:00
Ayaka Koshibe
941f860994 ConsistentDeviceMastership on top of LeadershipService, and leaders CLI command
modified to filter on topic. This does not support changing candidate ordering
(yet).

Refernce: ONOS-76

Change-Id: I028a6df0acbe3c4e4ff7c228f687f640e48e13be
2015-04-17 06:19:40 +00:00
Thomas Vachuska
a7a0f560a2 Converting builtin applications to be delivered in a self-contained manner via OAR files.
Change-Id: I5b7c6939aacc263248868fac2e0f69124c5f3609
2015-04-16 14:04:35 -07:00
Ray Milkey
34c959066d ONOS-533 Fix copyrights
- Any files created in 2014 and modified in 2015 got a copyright of
  2014-2015
- Used canonical form of 2014-2015 to be inclusive of extra years.
  Some files had 2014,2015

Change-Id: If9a133618873e4000b8f10299bde7c870eb1fbd5
2015-04-15 17:41:07 +00:00
Ray Milkey
95c5087688 ONOS-1597 - add an optional appId to CLI commands that create intents
Change-Id: Iaf14f1a98f617eb025dab1b16542d68184082ceb
2015-04-15 17:40:36 +00:00
Thomas Vachuska
8ceee94383 Added means to allow manipulating device annotations from CLI.
Change-Id: Ie3193a68b0164e77eb7e1e16cbf93fb953b73cb1
2015-04-15 00:05:50 +00:00
Brian O'Connor
e709a3b976 Removing duplicate apps from ApplicationNameCompleter
Change-Id: Ib0a79a9971b017afeddf7f3c85b8a1970a072449
2015-04-14 15:02:27 -07:00
Srikanth Vavilapalli
10e75cd1dc ONOS-1443: Group bucket statistics support and group CLI formatting
Change-Id: Iaa6d8ae1f9222eb9c29d14bf1615a7449e50c4d3
2015-04-14 21:06:44 +00:00
Ayaka Koshibe
fd26a3055c Create local storage for topic candidates mapping. This also includes:
- using Optional in Leadership, and some commenting.
 - using MutableBooleans + compute()

    part of: Device Mastership store on top of LeadershipService
    Reference: ONOS-76

Conflicts:
	core/api/src/main/java/org/onosproject/cluster/LeadershipService.java
	core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DistributedLeadershipManager.java

Change-Id: I7f090abb123cf23bb5126a935a6e72be00f3e3ce
2015-04-14 20:58:10 +00:00
Ray Milkey
b0352416ed ONOS-1602 - JSON output for cfg command in CLI
Change-Id: I439ea0982cc487417cd1d1a797d7f671ae6797f8
2015-04-14 17:23:32 +00:00
Thomas Vachuska
c40d463c27 Consolidating null providers and making them fully configurable and integrated with the ConfigProvider to allow arbitrary topologies.
Change-Id: I899e27a9771af4013a3ce6da7f683a4927ffb438
2015-04-14 01:23:24 -07:00
Thomas Vachuska
f9e0d17d5a Enhanced application name completer to consider the command context.
Change-Id: Ib77a53830d4b6d14ef99115309ea25707a8281b4
2015-04-12 08:29:14 -07:00
Ray Milkey
1cdfd8edc7 More ONOS-1612 - Fix NPEs if compenent lookup fails
Change-Id: Icc881cc79e75b7c44bcaa925b266396a93b60dbe
2015-04-11 00:40:20 +00:00
Ray Milkey
fb6655e138 ONOS-1612 - CLI completer for property names
Change-Id: Id3667f885d5d473385531308ffd486991136bfde
2015-04-10 10:51:46 -07:00
Jon Hall
e3f0fcf112 Avoid NPE in cfg command
- Avoid NPE when a component has no configurable property or doesn't exist
    - Specificly use a numeric value for SharedExecutors.DEFAULT_POOL_SIZE so
      the value appears in cfg command
    - Also use print instead of system.err since it is being redirected
      away from the console

Change-Id: Ib73016b1a9282493f0c5c8c217dd33292eac4ba4
2015-04-10 09:40:36 -07:00
sangho
538108bae8 ONOS-1440: Implements port statistics feature, which polls port statistics of all devices every 10 seconds. Also, implemented a simple portstats ONOS CLI command to show the statistics.
Change-Id: I57e046ae2c2463a58b478d3a5b523422cde71ba2
2015-04-09 22:43:41 +00:00
Thomas Vachuska
5c2f813575 Device driver framework enhancements and CLI.
Change-Id: I5dea67620259797eff89a985718934034a86d63e
2015-04-09 18:17:09 +00:00
Ayaka Koshibe
c19b8b84fd DistributedLeadershipManager tracks topic election candidates in addition to
leaders. Includes update to leaders CLI command to list candidates.

part of: Device Mastership store on top of LeadershipService
Reference: ONOS-76

Conflicts:
	core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DistributedLeadershipManager.java

Change-Id: I587bb9e9ad16a9c8392969dde45001181053e5e6
2015-04-09 17:57:51 +00:00
Jon Hall
6148f36f16 Fix typos in Component Config cli command
Change-Id: I3d4ed1a7b87c28573ec7b56c5ecfe182570bb4dc
2015-04-09 01:20:21 +00:00
Ray Milkey
2a6e445a76 Fix ONOS-1594 - bogus third option when adding mpls intent via CLI
Change-Id: I30421ed347544a56e225075740974812614fd52c
2015-04-09 01:19:57 +00:00
Madan Jampani
3e033bd22d Added a LogicalClockService for ordering arbitrary events in the cluster. Updated couple of areas that are currently vulnerable to clock skew
Change-Id: I14548ecb3c783104de8d72cbb5eb21de6ece08ed
2015-04-09 01:19:29 +00:00
Madan Jampani
b5d72d59f6 Support for a distributed counter
Change-Id: I346e9baa28556fac13e53771021f5f6fbcd75ac9
2015-04-08 19:33:54 +00:00
Ray Milkey
d088e8acce ONOS-1539 - Only display application IDs that have created intents in remove command
Change-Id: I9ff10ce9c9b46b2e93d8ac1a7a7dc52064088883
2015-04-08 16:36:45 +00:00
Madan Jampani
bff6d8f4fc Added distributed transaction support through a two phase commit protocol
Change-Id: I85d64234a24823fee8b3c2ea830abbb6867dad38
2015-04-03 20:39:07 +00:00
Thomas Vachuska
8ceff308ab Added support for -s|--short option when listing apps.
Added support for -s|--short option when listing configs.

Change-Id: I9235cc5eec34826ff90feb5642981080fcfa1524
2015-04-03 19:41:46 +00:00
Madan Jampani
a89f8f95d4 Added support for "maps" cli command that displays meta information for various consistent maps in the system
Change-Id: I63e590a8520ac9d1238efe4ad0033dcba939e472
2015-04-02 17:48:58 +00:00
Thomas Vachuska
de563cf235 Added ability to form a cluster via REST API.
Change-Id: Ib71f6b4caed1b1c4b9db78596ee35bf5cab05184
2015-04-01 20:39:37 +00:00
Madan Jampani
f1b8e177c6 Support a inmemory p0 partition encompassing all nodes in the cluster. This will be used by leadership manager and other usecases
that need strong consistency for coordination and not durable storage

Change-Id: I8e590e46d82a3d43cae3157a04be820bb7e1b175
2015-03-30 10:23:48 -07:00
Thomas Vachuska
fba2857430 Enhanced app CLI.
apps now support -a|--active option to show only activated apps.

app command now takes a list of app ids to allow single command to activate/deactivate/uninstall multiple apps

Deprecated old CLI commands which were already not included in the run-time config.

Consolidated intent & topology metrics to use the same app id since they are bundled into the same app.

Added 'reinstall' and 'reinstall!' option to onos-app tool.

Change-Id: I1406843bf608acf8e7d969a547b929d056e77067
2015-03-27 21:54:36 +00:00
Thomas Vachuska
9689126958 ONOS-1376 FIxed error in app command to report bad usage better.
Change-Id: Ib1a6c68cbe9fdef15c0b6b5c7e427999b6b39bdd
2015-03-25 01:48:40 +00:00
Ray Milkey
e076c791a5 Implement builders for optical intents
Change-Id: Ide728a943eb0ec3d3ba995f63c016e7d52bff65c
2015-03-24 20:08:31 +00:00
Ray Milkey
4250735018 Remove deprecated instructions() method in the traffic treatment class
Change-Id: I739b35bdcbf9867c639c7b6ca4006f3eeafbb055
2015-03-24 18:18:28 +00:00
Madan Jampani
7d2fab296a ONOS-1326: Added support for observing when node liveness status was last updated. Useful for detecting/debugging stability issues.
Change-Id: I8ffebcf3a09a51c6e3e7526986a0f05530ed757f
2015-03-23 21:45:52 +00:00
Ray Milkey
ebc5d22159 Refactor connectivity intent creation to use builders
- Each connectivity intent now has only one constructor
- Intent constructors are now private for leaf classes and
  protected for classes that can be derived from
- Each intent class has a Builder class that accumulates
  parameters for intent creation
- Each intent class has a public static builder() method
  to create a builder
- Each Builder class has a build() method to create the
  intent from the accumulated parameters
- Added keys to a few intent types that were missing them
- Tightened up usage of checkNotNull(), taking advantage of
  the return value to save some lines of code
- Modified callers to use the builders instead of directly
  calling the constructors

Change-Id: I713185d5ecbadbf51f87ef7f68fec41102106c78
2015-03-23 21:12:14 +00:00
Pavlin Radoslavov
6ba7efceaf Work toward ONOS-1268 Expose IPv6 support at the ONOS CLI level
* Automatically assign the Ethtype based on the IP address version
  for the "--ipSrc" and "--ipDst" arguments

* Fix a typo in the --ipSrc and --ipDst description

* Check whether the --ipSrc and --ipDst address versions are same

Change-Id: Iaac98987b070c5fed97a7f6eb4c544f1578effcd
2015-03-23 17:08:18 +00:00
Ray Milkey
3e3ec5f786 [Cardinal] Add builders for Intents and remove extra constructors.
Starting with PointToPoint intent to see how it looks

Change-Id: I5366a05d657ceaad18c03b95cd71f5d1107200e2
2015-03-18 22:17:54 +00:00