Esempio n. 1
0
    def __init__(self, opts=options):
        State.__init__(self)

        self.quiet = opts["quiet"]
        self.save = opts["save"]
        self.graph = opts["graph"]
        self.log = opts["log"]
        self.json = opts["json"]
        self.unlock_state = opts["unlock"]
        self.show_id = opts["id"]
        self.all = opts["all"]
Esempio n. 2
0
    def __init__(self, opts=options):
        State.__init__(self)

        self.quiet = opts["quiet"]
        self.delete = opts["delete"]
        self.key = opts["key"]
        self.value = opts["value"]
        self.config_type = opts["config-type"]
        if not (self.config_type in ('main', 'log', 'user')):
            print("Invalid value for the configuration type")
            print(happy.HappyConfiguration.HappyConfiguration.__doc__)
            sys.exit(1)
Esempio n. 3
0
 def __init__(self, node_id=None):
     State.__init__(self)
     self.network_type = {
         "thread": "thread",
         "wifi": "wifi",
         "wan": "wan",
         "cellular": "cellular",
         "internet": "internet",
         "tun": "tun",
         "out-of-band": "out-of-band"
     }
     self.node_link_suffix = "node"
     self.network_link_suffix = "net"
     self.ethernet_bridge_suffix = "bridge"
     self.ethernet_bridge_link = "tap"
Esempio n. 4
0
    def __init__(self, opts):
        State.__init__(self)

        self.min_supported_plaid_version = "1.2"

        self.__dict__.update(opts)

        self.plaid_happy_conf_path = self.__get_plaid_happy_conf_path()
        self.plaid_path = self.plaid_happy_conf_path

        self.lib_path = None
        self.server_path = None

        if self.plaid_path:
            self.lib_path = self.__lookup_plaid_file("/src/.libs/libPlaidClient.so.*.*.*")
            self.server_path = self.__lookup_plaid_file("/src/plaid-server")
            self.__check_installed_version_of_plaid()
 def __init__(self, opts=options):
     State.__init__(self)
     self.quiet = opts["quiet"]
    def __init__(self, opts=options):
        State.__init__(self)

        self.quiet = opts["quiet"]
        self.new_json_file = opts["json_file"]
Esempio n. 7
0
 def __init__(self):
     State.__init__(self)