Commit Graph

32 Commits

Author SHA1 Message Date
stephb9959
b31fb67eda https://telecominfraproject.atlassian.net/browse/WIFI-11268
Signed-off-by: stephb9959 <stephane.bourque@gmail.com>
2022-10-24 10:04:13 -07:00
stephb9959
b3a0593f8e Refactoring yaml file name. 2021-09-27 09:50:01 -07:00
Ben Greear
ef23e5f98b ulogin: Fix upgrade_latest example.
This fixes the jfrog login user/password options.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-06-07 14:23:55 -07:00
Ben Greear
e1f5607d9d ulogin: Fix example usage.
Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-06-04 16:20:54 -07:00
Ben Greear
bd600f7f4d ulogin: Have big NAT dhcp space by default.
And add some comments.  Station's will get IPs in NAT
mode, but I cannot pass traffic.  So, either config is
broken, or there are owrt + ucentral issues still.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-05-31 15:43:28 -07:00
Ben Greear
33c4bbe5e2 ulogin: Allow upgrading latest image from jfrog.
This option parses the latest-image.json link on the jfrog repo
and then parses it to generate an upgrade URL to pass to ucentral.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-05-31 10:33:56 -07:00
Ben Greear
102a21642d ulogin: Support for basic VLAN config.
This appears to set up VLANs in bridge mode, but not fully tested
end to end.

To do really interesting configs, we will need more extensive input
and interface-section-creation logic.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-05-29 15:49:18 -07:00
Ben Greear
32d7642ddb ulogin: Fix cfg generation and improve examples.
With current ucentral, we must specify the radio mode,
so default that to 'HE' intead of leaving it empty.

Update examples in the help text at the top of the file.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-05-29 14:52:13 -07:00
Ben Greear
859b4b3b2a ulogin: Add ability to apply an AP config from text file.
Example is to load the default config from the curl dir.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-05-28 11:30:54 -07:00
Ben Greear
37133d5e6a ulogin: Fix nat/bridge mode example and improve cmd-line arg handling.
Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-05-28 08:50:07 -07:00
Ben Greear
2c6bca1cf0 ulogin: Start using new API to configure AP.
Does not work as is, but closer.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-05-28 08:07:00 -07:00
Ben Greear
e258ef7d71 ulogin.py: Update to support user/passwd cmd line args.
And default to match ucentral gw default settings.
And don't try to load a cert unless user specifies such.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-05-27 17:11:04 -07:00
stephb9959
a81d296cc9 Fixing dates returned. 2021-05-20 13:50:17 -07:00
stephb9959
52b916a42a Certs are evil 2021-04-29 11:19:30 -07:00
Stephane Bourque
0cee5c9394 Merge pull request #6 from Telecominfraproject/ben3
Ben3
2021-04-25 09:25:40 -07:00
Ben Greear
18e5363f4c ulogin: Fix show_commands URI
Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-25 09:21:05 -07:00
stephb9959
c682b02b3e Added a build incrementer to the CMakeList. In order to increase the build number, you must invoke cmake -DBUILD_INCREMENT=1. The version is reported as X.Y.Z(build#). This depends on the file build 2021-04-25 08:48:42 -07:00
Ben Greear
47b1063b38 ulogin: Add ability to query commands.
Something is wrong though, maybe with python, maybe with ucentral,
at the moment.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-23 12:38:12 -07:00
Ben Greear
6dc4f434c6 ulogin: Support reading healthcheck.
Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-23 12:20:30 -07:00
Ben Greear
567826fb40 ulogin: Support sending request to API
And fix stats display.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-23 12:14:15 -07:00
Ben Greear
83c74a8598 ulogin: Support show_logs
Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-23 12:05:11 -07:00
Ben Greear
6271441b50 ulogin: Support AP status API
Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-23 11:56:24 -07:00
Ben Greear
52e581d807 ulogin: Support get capabilities API.
Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-23 11:52:55 -07:00
Ben Greear
92e65a38b4 ulogin: Fix list-device code.
Latest ucentral uses properly formed json instead of
text blobs it seems, update ulogin to handle that.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-23 11:46:04 -07:00
Ben Greear
ae21df918e ulogin: Support upgrading AP with sysupgrade.
And add example usage to top of file.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-23 11:37:41 -07:00
Ben Greear
5235bdfdb9 ulogin: Enable DHCP in NAT mode.
This lets NAT mode work as expected.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-16 16:06:29 -07:00
Ben Greear
a9ffc6fe2b ulogin: Add example for bridge mode setup.
And clarify that other one is NAT/router mode.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-15 12:02:38 -07:00
Ben Greear
baadd9376c ulogin: Add example to configure AP in psk2 bridge mode.
Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-14 20:59:43 -07:00
Ben Greear
ea267b9a54 ulogin: Fix cfg option.
I was using wrong URL, and was missing 'uuid' in the data
section.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-12 08:42:50 -07:00
Ben Greear
01508fb8f0 ulogin: Add cmd line args to the python example tool.
Support querying specific devices.
Add configure logic (doesn't work yet).
Cmd-line args to be more flexible.
Check response codes and warn as needed.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-11 08:56:08 -07:00
stephb9959
4ece282860 Small Python changes. 2021-03-21 22:10:26 -07:00
stephb9959
ee99541131 Initial commit 2021-03-19 14:16:24 -07:00