summaryrefslogtreecommitdiffstats
path: root/vstf/vstf/controller/settings
diff options
context:
space:
mode:
Diffstat (limited to 'vstf/vstf/controller/settings')
-rwxr-xr-xvstf/vstf/controller/settings/README61
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/settings/__init__.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/settings/cpu_settings.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/settings/device_settings.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/settings/flows_settings.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/settings/forwarding_settings.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/settings/html_settings.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/settings/mail_settings.py11
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/settings/perf_settings.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/settings/settings.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/settings/settings_input.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/settings/template_settings.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/settings/tester_settings.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/settings/tool_settings.py0
14 files changed, 0 insertions, 72 deletions
diff --git a/vstf/vstf/controller/settings/README b/vstf/vstf/controller/settings/README
deleted file mode 100755
index febac1c9..00000000
--- a/vstf/vstf/controller/settings/README
+++ /dev/null
@@ -1,61 +0,0 @@
-This module providers a set of profile management solution
-File:
- settings.py
-Interface:
- Settings
-
- 1. it is a base class and supports two modes "Default" and "Single"
- if the mode is "Default", the program will load the 'json' file from 'default'
- and 'user' , merge the input, save only the 'json' file from 'user'
- if the mode is "Single", the program will only load and save the 'json' file
- 2. it saves a file two, one is only in memory and the other is in file
- 3. it provides two types of functions, one is like "set_" and "add_" and the
- other is like "mset" and "madd". the functions are automatically registered.
-
- 4. You can overload the function _register_func to achieve the functions what you desire
- by function "_setting_file","_adding_file","_setting_memory" and "_addting_memory"
-
- 5. it provides "settings" to show the result in memory
- 6. it provides "reset" to reload the file
-
-Example:
-
- 1. create your-settings file and paste the contents
-
- {
- "items1": "value1",
- "items2": "value2"
- }
-
-
- 2. create your_settings file and paste the codes
-
- import vstf.controller.settings.settings as sets
- class YourSettings(sets.Settings):
- def __init__(self, path="./", filename="your-settings", mode=sets.SETS_SINGLE):
- super(MailSettings, self).__init__(path, filename, mode)
-
- def unit_test():
- setting = YourSettings()
- print setting.settings()
- value1 = "test_set_items1"
- setting.set_items1(value1)
- print setting.settings()
- value2 = "test_set_items2"
- setting.mset_items2(value2)
- print setting.settings()
- settings.reset()
- print setting.settings()
-
- if __name__ == '__main__':
- unit_test()
-
-Tree:
-
- data_settings.py
- flows_settings.py
- perf_settings.py
-
- mail_settings.py
- tool_settings.py
- html_settings.py \ No newline at end of file
diff --git a/vstf/vstf/controller/settings/__init__.py b/vstf/vstf/controller/settings/__init__.py
index 83b8d15d..83b8d15d 100755..100644
--- a/vstf/vstf/controller/settings/__init__.py
+++ b/vstf/vstf/controller/settings/__init__.py
diff --git a/vstf/vstf/controller/settings/cpu_settings.py b/vstf/vstf/controller/settings/cpu_settings.py
index a25af4c1..a25af4c1 100755..100644
--- a/vstf/vstf/controller/settings/cpu_settings.py
+++ b/vstf/vstf/controller/settings/cpu_settings.py
diff --git a/vstf/vstf/controller/settings/device_settings.py b/vstf/vstf/controller/settings/device_settings.py
index 25f2c5bf..25f2c5bf 100755..100644
--- a/vstf/vstf/controller/settings/device_settings.py
+++ b/vstf/vstf/controller/settings/device_settings.py
diff --git a/vstf/vstf/controller/settings/flows_settings.py b/vstf/vstf/controller/settings/flows_settings.py
index 9cd1a1b7..9cd1a1b7 100755..100644
--- a/vstf/vstf/controller/settings/flows_settings.py
+++ b/vstf/vstf/controller/settings/flows_settings.py
diff --git a/vstf/vstf/controller/settings/forwarding_settings.py b/vstf/vstf/controller/settings/forwarding_settings.py
index 636ddfda..636ddfda 100755..100644
--- a/vstf/vstf/controller/settings/forwarding_settings.py
+++ b/vstf/vstf/controller/settings/forwarding_settings.py
diff --git a/vstf/vstf/controller/settings/html_settings.py b/vstf/vstf/controller/settings/html_settings.py
index ce87733e..ce87733e 100755..100644
--- a/vstf/vstf/controller/settings/html_settings.py
+++ b/vstf/vstf/controller/settings/html_settings.py
diff --git a/vstf/vstf/controller/settings/mail_settings.py b/vstf/vstf/controller/settings/mail_settings.py
index a2d2d6df..db01097f 100755..100644
--- a/vstf/vstf/controller/settings/mail_settings.py
+++ b/vstf/vstf/controller/settings/mail_settings.py
@@ -94,17 +94,6 @@ def unit_test():
}
mail_settings.set_server(mail_server)
- from_list = ['vstf_from@vstf.com']
- mail_settings.set_from(from_list)
- to_list = ['wangli11@huawei.com']
- mail_settings.set_to(to_list)
- cc_list = ['wangli11@huawei.com']
- mail_settings.set_cc(cc_list)
- bcc_list = ['wangli11@huawei.com']
- mail_settings.set_bcc(bcc_list)
- bcc_list = ['wangli11@huawei.com']
- mail_settings.set_bcc(bcc_list)
-
subject = "Virtual Switching Performance Test Report"
mail_settings.set_subject(subject)
diff --git a/vstf/vstf/controller/settings/perf_settings.py b/vstf/vstf/controller/settings/perf_settings.py
index 610cb4ae..610cb4ae 100755..100644
--- a/vstf/vstf/controller/settings/perf_settings.py
+++ b/vstf/vstf/controller/settings/perf_settings.py
diff --git a/vstf/vstf/controller/settings/settings.py b/vstf/vstf/controller/settings/settings.py
index 2c712bb2..2c712bb2 100755..100644
--- a/vstf/vstf/controller/settings/settings.py
+++ b/vstf/vstf/controller/settings/settings.py
diff --git a/vstf/vstf/controller/settings/settings_input.py b/vstf/vstf/controller/settings/settings_input.py
index 59652ed5..59652ed5 100755..100644
--- a/vstf/vstf/controller/settings/settings_input.py
+++ b/vstf/vstf/controller/settings/settings_input.py
diff --git a/vstf/vstf/controller/settings/template_settings.py b/vstf/vstf/controller/settings/template_settings.py
index b677c539..b677c539 100755..100644
--- a/vstf/vstf/controller/settings/template_settings.py
+++ b/vstf/vstf/controller/settings/template_settings.py
diff --git a/vstf/vstf/controller/settings/tester_settings.py b/vstf/vstf/controller/settings/tester_settings.py
index 554c8042..554c8042 100755..100644
--- a/vstf/vstf/controller/settings/tester_settings.py
+++ b/vstf/vstf/controller/settings/tester_settings.py
diff --git a/vstf/vstf/controller/settings/tool_settings.py b/vstf/vstf/controller/settings/tool_settings.py
index a84bc59f..a84bc59f 100755..100644
--- a/vstf/vstf/controller/settings/tool_settings.py
+++ b/vstf/vstf/controller/settings/tool_settings.py