ns2 0.2.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. ns2/__init__.py +0 -0
  2. ns2/core.py +0 -0
  3. ns2/dbus/__init__.py +0 -0
  4. ns2/dbus/dbus.py +13 -0
  5. ns2/lib/__init__.py +0 -0
  6. ns2/lib/accounts.py +130 -0
  7. ns2/lib/commands.py +32 -0
  8. ns2/lib/firewalld.py +167 -0
  9. ns2/lib/introspection/org.fedoraproject.FirewallD1.config.xml +3 -0
  10. ns2/lib/introspection/org.fedoraproject.FirewallD1.xml +763 -0
  11. ns2/lib/introspection/org.freedesktop.NetworkManager.AccessPoint.xml +106 -0
  12. ns2/lib/introspection/org.freedesktop.NetworkManager.AgentManager.xml +43 -0
  13. ns2/lib/introspection/org.freedesktop.NetworkManager.Checkpoint.xml +36 -0
  14. ns2/lib/introspection/org.freedesktop.NetworkManager.Connection.Active.xml +185 -0
  15. ns2/lib/introspection/org.freedesktop.NetworkManager.DHCP4Config.xml +21 -0
  16. ns2/lib/introspection/org.freedesktop.NetworkManager.DHCP6Config.xml +20 -0
  17. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Adsl.xml +21 -0
  18. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Bluetooth.xml +36 -0
  19. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Bond.xml +40 -0
  20. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Bridge.xml +41 -0
  21. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Dummy.xml +20 -0
  22. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Generic.xml +27 -0
  23. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Hsr.xml +51 -0
  24. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.IPTunnel.xml +107 -0
  25. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Infiniband.xml +31 -0
  26. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Ipvlan.xml +38 -0
  27. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Loopback.xml +8 -0
  28. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Lowpan.xml +27 -0
  29. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Macsec.xml +109 -0
  30. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Macvlan.xml +39 -0
  31. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Modem.xml +62 -0
  32. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.OlpcMesh.xml +34 -0
  33. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.OvsBridge.xml +21 -0
  34. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.OvsInterface.xml +11 -0
  35. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.OvsPort.xml +21 -0
  36. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Ppp.xml +11 -0
  37. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Statistics.xml +35 -0
  38. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Team.xml +48 -0
  39. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Tun.xml +65 -0
  40. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Veth.xml +18 -0
  41. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Vlan.xml +45 -0
  42. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Vrf.xml +18 -0
  43. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Vxlan.xml +139 -0
  44. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.WiMax.xml +109 -0
  45. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.WifiP2P.xml +76 -0
  46. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.WireGuard.xml +38 -0
  47. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Wired.xml +53 -0
  48. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Wireless.xml +131 -0
  49. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.Wpan.xml +20 -0
  50. ns2/lib/introspection/org.freedesktop.NetworkManager.Device.xml +407 -0
  51. ns2/lib/introspection/org.freedesktop.NetworkManager.DnsManager.xml +40 -0
  52. ns2/lib/introspection/org.freedesktop.NetworkManager.IP4Config.xml +125 -0
  53. ns2/lib/introspection/org.freedesktop.NetworkManager.IP6Config.xml +95 -0
  54. ns2/lib/introspection/org.freedesktop.NetworkManager.PPP.xml +34 -0
  55. ns2/lib/introspection/org.freedesktop.NetworkManager.SecretAgent.xml +94 -0
  56. ns2/lib/introspection/org.freedesktop.NetworkManager.Settings.Connection.xml +224 -0
  57. ns2/lib/introspection/org.freedesktop.NetworkManager.Settings.xml +233 -0
  58. ns2/lib/introspection/org.freedesktop.NetworkManager.VPN.Connection.xml +42 -0
  59. ns2/lib/introspection/org.freedesktop.NetworkManager.VPN.Plugin.xml +204 -0
  60. ns2/lib/introspection/org.freedesktop.NetworkManager.WiMax.Nsp.xml +35 -0
  61. ns2/lib/introspection/org.freedesktop.NetworkManager.WifiP2PPeer.xml +91 -0
  62. ns2/lib/introspection/org.freedesktop.NetworkManager.xml +598 -0
  63. ns2/lib/lib.py +0 -0
  64. ns2/lib/network_delay.py +92 -0
  65. ns2/lib/networking.py +528 -0
  66. ns2/lib/ntl.py +188 -0
  67. ns2/lib/pam_client.py +37 -0
  68. ns2/lib/ping_data_collector.py +37 -0
  69. ns2/lib/snmp.py +511 -0
  70. ns2/lib/socket.py +132 -0
  71. ns2/lib/socket_client.py +62 -0
  72. ns2/lib/systemd.py +151 -0
  73. ns2/lib/test.py +374 -0
  74. ns2/lib/udp_client.py +227 -0
  75. ns2/lib/udp_server.py +167 -0
  76. ns2/snmp/__init__.py +0 -0
  77. ns2/snmp/ns_dbus_service.py +38 -0
  78. ns2/snmp/pam_interface.py +19 -0
  79. ns2/snmp/snmp_interface.py +66 -0
  80. ns2/ui/__init__.py +0 -0
  81. ns2/ui/assets/NOVUS_LOGO.svg +105 -0
  82. ns2/ui/assets/favicon.png +0 -0
  83. ns2/ui/firewalld_page.py +375 -0
  84. ns2/ui/fpga_page.py +24 -0
  85. ns2/ui/login.py +65 -0
  86. ns2/ui/main.py +200 -0
  87. ns2/ui/networking_page.py +406 -0
  88. ns2/ui/ntp.py +105 -0
  89. ns2/ui/root.py +31 -0
  90. ns2/ui/snmp_page.py +353 -0
  91. ns2/ui/terminal.py +65 -0
  92. ns2/ui/tests_page.py +116 -0
  93. ns2/ui/theme.py +25 -0
  94. ns2/utils.py +5 -0
  95. ns2-0.2.6.dist-info/METADATA +78 -0
  96. ns2-0.2.6.dist-info/RECORD +98 -0
  97. ns2-0.2.6.dist-info/WHEEL +4 -0
  98. ns2-0.2.6.dist-info/entry_points.txt +3 -0
@@ -0,0 +1,204 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <node name="/">
3
+
4
+ <!--
5
+ org.freedesktop.NetworkManager.VPN.Plugin:
6
+ @short_description: VPN Service.
7
+
8
+ This interface is provided by plugins providing VPN services to the
9
+ NetworkManager daemon.
10
+ -->
11
+ <interface name="org.freedesktop.NetworkManager.VPN.Plugin">
12
+ <annotation name="org.gtk.GDBus.C.Name" value="VpnPlugin"/>
13
+
14
+ <!--
15
+ Connect:
16
+ @connection: Describes the connection to be established.
17
+
18
+ Tells the plugin to connect. Interactive secrets requests (eg, emitting
19
+ the SecretsRequired signal) are not allowed.
20
+ -->
21
+ <method name="Connect">
22
+ <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_vpn_plugin_connect"/>
23
+ <arg name="connection" type="a{sa{sv}}" direction="in"/>
24
+ </method>
25
+
26
+ <!--
27
+ ConnectInteractive:
28
+ @connection: Describes the connection to be established.
29
+ @details: Additional details about the Connect process.
30
+
31
+ Tells the plugin to connect, allowing interactive secrets requests (eg the
32
+ plugin is allowed to emit the SecretsRequired signal if the VPN service
33
+ indicates that it needs additional secrets during the connect process).
34
+ -->
35
+ <method name="ConnectInteractive">
36
+ <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_vpn_plugin_connect_interactive"/>
37
+ <arg name="connection" type="a{sa{sv}}" direction="in"/>
38
+ <arg name="details" type="a{sv}" direction="in"/>
39
+ </method>
40
+
41
+ <!--
42
+ NeedSecrets:
43
+ @settings: Describes the connection that may need secrets.
44
+ @setting_name: The setting name within the provided connection that requires secrets, if any.
45
+
46
+ Asks the plugin whether the provided connection will require secrets to
47
+ connect successfully.
48
+ -->
49
+ <method name="NeedSecrets">
50
+ <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_vpn_plugin_need_secrets"/>
51
+ <arg name="settings" type="a{sa{sv}}" direction="in"/>
52
+ <arg name="setting_name" type="s" direction="out"/>
53
+ </method>
54
+
55
+ <!--
56
+ Disconnect:
57
+
58
+ Disconnect the plugin.
59
+ -->
60
+ <method name="Disconnect">
61
+ <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_vpn_plugin_disconnect"/>
62
+ </method>
63
+
64
+ <!--
65
+ SetConfig:
66
+ @config: Generic configuration details for the connection.
67
+
68
+ Set generic connection details on the connection.
69
+ -->
70
+ <method name="SetConfig">
71
+ <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_vpn_plugin_set_config"/>
72
+ <arg name="config" type="a{sv}" direction="in"/>
73
+ </method>
74
+
75
+ <!--
76
+ SetIp4Config:
77
+ @config: Ip4Config details for the connection. You must call SetConfig() before calling this.
78
+
79
+ Set IPv4 details on the connection.
80
+ -->
81
+ <method name="SetIp4Config">
82
+ <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_vpn_plugin_set_ip4_config"/>
83
+ <arg name="config" type="a{sv}" direction="in"/>
84
+ </method>
85
+
86
+ <!--
87
+ SetIp6Config:
88
+ @config: Ip6Config details for the connection. You must call SetConfig() before calling this.
89
+
90
+ Set IPv6 details on the connection.
91
+ -->
92
+ <method name="SetIp6Config">
93
+ <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_vpn_plugin_set_ip6_config"/>
94
+ <arg name="config" type="a{sv}" direction="in"/>
95
+ </method>
96
+
97
+ <!--
98
+ SetFailure:
99
+ @reason: The reason for the failure.
100
+
101
+ Indicate a failure to the plugin.
102
+ -->
103
+ <method name="SetFailure">
104
+ <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_vpn_plugin_set_failure"/>
105
+ <arg name="reason" type="s" direction="in"/>
106
+ </method>
107
+
108
+ <!--
109
+ State:
110
+
111
+ The state of the plugin.
112
+
113
+ Returns: <link linkend="NMVpnServiceState">NMVpnServiceState</link>
114
+ -->
115
+ <property name="State" type="u" access="read"/>
116
+
117
+ <!--
118
+ StateChanged:
119
+ @state: (<link linkend="NMVpnServiceState">NMVpnServiceState</link>) The new state of the plugin.
120
+
121
+ Emitted when the plugin state changes.
122
+ -->
123
+ <signal name="StateChanged">
124
+ <arg name="state" type="u"/>
125
+ </signal>
126
+
127
+ <!--
128
+ SecretsRequired:
129
+ @message: Informational message, if any, about the request. For example, if a second PIN is required, could indicate to the user to wait for the token code to change until entering the next PIN.
130
+ @secrets: Array of strings of VPN secret names which the plugin thinks secrets may be required for, or other VPN-specific data to be processed by the VPN's front-end.
131
+
132
+ Emitted during an ongoing ConnectInteractive() request when the plugin has
133
+ determined that new secrets are required. NetworkManager will then call
134
+ the NewSecrets() method with a connection hash including the new secrets.
135
+ -->
136
+ <signal name="SecretsRequired">
137
+ <arg name="message" type="s" direction="out"/>
138
+ <arg name="secrets" type="as" direction="out"/>
139
+ </signal>
140
+
141
+ <!--
142
+ NewSecrets:
143
+ @connection: Describes the connection including the new secrets.
144
+
145
+ Called in response to a SecretsRequired signal to deliver updated secrets
146
+ or other information to the plugin.
147
+ -->
148
+ <method name="NewSecrets">
149
+ <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_vpn_plugin_new_secrets"/>
150
+ <arg name="connection" type="a{sa{sv}}" direction="in"/>
151
+ </method>
152
+
153
+ <!--
154
+ Config:
155
+ @config: The configuration information.
156
+
157
+ The plugin obtained generic configuration information.
158
+ -->
159
+ <signal name="Config">
160
+ <arg name="config" type="a{sv}"/>
161
+ </signal>
162
+
163
+ <!--
164
+ Ip4Config:
165
+ @ip4config: The IPv4 configuration.
166
+
167
+ The plugin obtained an IPv4 configuration.
168
+ -->
169
+ <signal name="Ip4Config">
170
+ <arg name="ip4config" type="a{sv}"/>
171
+ </signal>
172
+
173
+ <!--
174
+ Ip6Config:
175
+ @ip6config: The IPv6 configuration.
176
+
177
+ The plugin obtained an IPv6 configuration.
178
+ -->
179
+ <signal name="Ip6Config">
180
+ <arg name="ip6config" type="a{sv}"/>
181
+ </signal>
182
+
183
+ <!--
184
+ LoginBanner:
185
+ @banner: The login banner string.
186
+
187
+ Emitted when the plugin receives a login banner from the VPN service.
188
+ -->
189
+ <signal name="LoginBanner">
190
+ <arg name="banner" type="s"/>
191
+ </signal>
192
+
193
+ <!--
194
+ Failure:
195
+ @reason: (<link linkend="NMVpnPluginFailure">NMVpnPluginFailure</link>) Reason code for the failure.
196
+
197
+ Emitted when a failure in the VPN plugin occurs.
198
+ -->
199
+ <signal name="Failure">
200
+ <arg name="reason" type="u"/>
201
+ </signal>
202
+
203
+ </interface>
204
+ </node>
@@ -0,0 +1,35 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <node name="/">
3
+ <!--
4
+ org.freedesktop.NetworkManager.WiMax.Nsp:
5
+ @short_description: WiMax Network Service Provider.
6
+
7
+ DEPRECATED: NetworkManager no longer supports WiMAX since version 1.2. This interface is no longer used.
8
+ -->
9
+ <interface name="org.freedesktop.NetworkManager.WiMax.Nsp">
10
+
11
+ <!--
12
+ Name:
13
+
14
+ The name of the NSP.
15
+ -->
16
+ <property name="Name" type="s" access="read"/>
17
+
18
+ <!--
19
+ SignalQuality:
20
+
21
+ The current signal quality of the NSP, in percent.
22
+ -->
23
+ <property name="SignalQuality" type="u" access="read"/>
24
+
25
+ <!--
26
+ NetworkType:
27
+
28
+ The network type of the NSP.
29
+
30
+ Returns: <link linkend="NMWimaxNspNetworkType">NMWimaxNspNetworkType</link>
31
+ -->
32
+ <property name="NetworkType" type="u" access="read"/>
33
+
34
+ </interface>
35
+ </node>
@@ -0,0 +1,91 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <node name="/">
3
+ <!--
4
+ org.freedesktop.NetworkManager.WifiP2PPeer:
5
+ @short_description: Wi-Fi P2P Peer.
6
+ @since: 1.16
7
+ -->
8
+ <interface name="org.freedesktop.NetworkManager.WifiP2PPeer">
9
+ <annotation name="org.gtk.GDBus.C.Name" value="Wifi_P2P_Peer"/>
10
+
11
+ <!--
12
+ before 1.24, we wrongly exposed a property "Groups" ("as"). Don't reuse
13
+ that property name.
14
+ -->
15
+
16
+ <!--
17
+ Name:
18
+
19
+ Device name.
20
+ -->
21
+ <property name="Name" type="s" access="read"/>
22
+
23
+ <!--
24
+ Flags:
25
+
26
+ Flags describing the capabilities of the access point.
27
+
28
+ Returns: <link linkend="NM80211ApFlags">NM80211ApFlags</link>
29
+ -->
30
+ <property name="Flags" type="u" access="read"/>
31
+
32
+ <!--
33
+ Manufacturer:
34
+
35
+ The manufacturer of the Wi-Fi P2P peer.
36
+ -->
37
+ <property name="Manufacturer" type="s" access="read"/>
38
+
39
+ <!--
40
+ Model:
41
+
42
+ The model of the Wi-Fi P2P peer.
43
+ -->
44
+ <property name="Model" type="s" access="read"/>
45
+
46
+ <!--
47
+ ModelNumber:
48
+
49
+ The model number of the Wi-Fi P2P peer.
50
+ -->
51
+ <property name="ModelNumber" type="s" access="read"/>
52
+
53
+ <!--
54
+ Serial:
55
+
56
+ The serial number of the Wi-Fi P2P peer.
57
+ -->
58
+ <property name="Serial" type="s" access="read"/>
59
+
60
+ <!--
61
+ WfdIEs:
62
+
63
+ The Wi-Fi Display Information Elements of the Wi-Fi P2P peer.
64
+ -->
65
+ <property name="WfdIEs" type="ay" access="read"/>
66
+
67
+ <!--
68
+ HwAddress:
69
+
70
+ The hardware address (BSSID) of the access point.
71
+ -->
72
+ <property name="HwAddress" type="s" access="read"/>
73
+
74
+ <!--
75
+ Strength:
76
+
77
+ The current signal quality of the access point, in percent.
78
+ -->
79
+ <property name="Strength" type="y" access="read"/>
80
+
81
+ <!--
82
+ LastSeen:
83
+
84
+ The timestamp (in CLOCK_BOOTTIME seconds) for the last time the access
85
+ point was found in scan results. A value of -1 means the access point has
86
+ never been found in scan results.
87
+ -->
88
+ <property name="LastSeen" type="i" access="read"/>
89
+
90
+ </interface>
91
+ </node>