4 # Copyright (c) 2020 Project CHIP Authors
5 # Copyright (c) 2015-2018 Nest Labs, Inc.
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
12 # http://www.apache.org/licenses/LICENSE-2.0
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 # See the License for the specific language governing permissions and
18 # limitations under the License.
23 # Implements ChipState class that implements methods to retrieve
24 # parts of state setup that relate to Chip plugin.
28 from happy.State import State
29 from happy.utils.IP import IP
32 options["quiet"] = False
39 class ChipState(State):
41 Displays CHIP-related parameters for CHIP nodes in a Happy network
43 chip-state [-h --help] [-q --quiet]
46 Displays CHIP-related parameters for all CHIP nodes in the
47 current Happy topology.
53 def __init__(self, opts=options):
55 self.quiet = opts["quiet"]