483 Commits

Author SHA1 Message Date
Ray Milkey
39616f3a81 Add JSON to CLI commands
- Drivers
- Groups

Change-Id: Ib47dc75d9db839329e6cf8fc4439150848f604f5
2015-05-15 02:03:31 +00:00
jcc
de3e92eb78 【ONOS-1223】【ONOS-1870】the implements of label resource APIs.it include
commands
used to test
if there is any bug,LabelResourceManager,LabelResourceStore using
copycat,and junit test code.
the distribution strategy is that the master of devices handle all the
requests if applied label belongs to it.except for query request.
label store uses copycat instead of hazelcast to keep strong consistency

Change-Id: I77bde6a96f33098063573d37ed1ba787ae21973f
2015-05-14 22:11:30 +00:00
Ray Milkey
3078fc0620 ONOS-743 - Use REST API Codecs to generate JSON for CLI commands
Change-Id: I25e0840d1af03341c638f837498c95275e6cf31b
2015-05-13 17:03:39 +00:00
Thomas Vachuska
635c2d7ed1 Adding device driver inheritance mechanism.
Change-Id: I9c883d32ce0c39f961eddd5c4624dc23f794fe4d
2015-05-11 15:49:23 +00:00
Sho SHIMIZU
6d01d3df91 Inline static factory methods in BandwidthResource
Change-Id: I8ac7fbaea5c81c9558f88f6ac88bcf581466d073
2015-05-08 16:10:55 -07:00
Sho SHIMIZU
63feca7d26 Rename Bandwidth to BandwidthResource
To distinguish unit of bandwidth and resource of bandwidth

Change-Id: Ice52538f0c00f6d7743ca247d0f9bab3febdc94b
2015-05-08 23:08:36 +00:00
Dusan Pajin
676a9e4e37 Flow timeout shows in the FlowsList CLI command
Change-Id: Ia559f726dfd9a3507f6fc7c7351dc19f465fd60f
2015-05-08 16:33:54 +02:00
Ayaka Koshibe
4699b29d6c Command for basic testing of LinkResourceService
Change-Id: I65b3a3050255b2134cd4ffc3cad6e0c7d7df5515
2015-05-06 18:00:23 +00:00
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