enatec / unifitooling Goto Github PK
View Code? Open in Web Editor NEWUbiquiti UniFi Security Gateway automation via the API of the Ubiquiti UniFi Controller
License: BSD 3-Clause "New" or "Revised" License
Ubiquiti UniFi Security Gateway automation via the API of the Ubiquiti UniFi Controller
License: BSD 3-Clause "New" or "Revised" License
Is your feature request related to a problem? Please describe.
Get-UnifiNetworkDetails
should support requesting the network by name
Describe the solution you'd like
At the moment it has be be like this: Get-UnifiNetworkDetails -UnifiNetwork 5bfcrt65054a4e045eadbdfa
instead it should be like this: Get-UnifiNetworkDetails -UnifiNetwork 'mynetwork'
Describe alternatives you've considered
Now the Get-UnifiNetworkList
is used to filter (get the _id
object for a given name)
Desktop/Server (optional, but better provide more details):
Additional context
Is your feature request related to a problem? Please describe.
The command (Get-UnifiFirewallGroupDetails
) should display the details for a given USG Firewall Group
Describe the solution you'd like
A bit like the Get-UnifiFirewallGroupDetails
, it should return all details for a given USG Firewall Group.
And like requested #9 the new function Get-UnifiFirewallGroupDetails
should support a query by the name of a USG Firewall Group and not only by the ID. Cause this is hard to remember.
Describe alternatives you've considered
None
Desktop/Server (optional, but better provide more details):
Additional context
A bit related to #9 for Get-UnifiFirewallGroupDetails
In the VSCode tasks.json the wrapper is still in use.
Instead of this:
"command": "${cwd}/../build.ps1 -Project 'UniFiTooling' -Task 'Build'",
it should use:
"command": "${cwd}/../etBuildTooling.ps1 -Project 'UniFiTooling' -Task 'Build'",
Not a big deal, but build.ps1
is a legacy wrapper for the new wrapper etBuildTooling.ps1
that is used by the build server, a wrapper for a wrapper...
The locations needs a bit more description!
Where does the functions search for it? How can a user change the location?
Describe the bug
The Build Process has issues with the GUID again!
Example: UniFiTooling_7fff91a0-02eb-4df2-84d5-c7d3cd7f7a5d 7fff91a0-02eb-4df2-84d5-c7d3cd7f7a5d_en-US_HelpContent.cab
should be UniFiTooling_7fff91a0-02eb-4df2-84d5-c7d3cd7f7a5d_en-US_HelpContent.cab
To Reproduce
Steps to reproduce the behavior:
Expected behavior
UniFiTooling_7fff91a0-02eb-4df2-84d5-c7d3cd7f7a5d_en-US_HelpContent.cab
instead of UniFiTooling_7fff91a0-02eb-4df2-84d5-c7d3cd7f7a5d 7fff91a0-02eb-4df2-84d5-c7d3cd7f7a5d_en-US_HelpContent.cab
Possible Solution
Drop the ModuleBuild usage. Nice, but to buggy. And the GUID issue is nothing new.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop/Server (please complete the following information):
Additional context
To prevent further misunderstandings, the Module must check if the a valid session (login) was done before issuing any command!
This could be implemented before any of the relevant commands.
Workflow:
Check-UnifiConnection.ps1
PROTO://URI:PORT/api/s/default/self
(as a simple get)Negative:
{
"data": [],
"meta": {
"msg": "api.err.LoginRequired",
"rc": "error"
}
}
Positive:
{
"data": [
{
/* REMOVED */
}
],
"meta": {
"rc": "ok"
}
}
If the result is not meta.rc: ok, then the Invoke-UniFiApiLogin
is called! With a forced Invoke-UniFiApiLogout
before the call
In this case the call must be:
# No error message and NO stop on error ;-)
$null = (Invoke-UniFiApiLogout -ErrorAction SilentlyContinue)
Will be private (not exported), name will be Check-UnifiConnection.ps1
Adopt the Tip of @LawrenceHwang and set $ProgressPreference to 'SilentlyContinue' whenever possible.
Is your feature request related to a problem? Please describe.
Create a new config file would be great.
Describe the solution you'd like
The function should ask for everything it need to create a new config.json
file.
Describe alternatives you've considered
A GUI might also be an option (not a helper, more like a tool)
Desktop/Server (optional, but better provide more details):
Additional context
NN
Is your feature request related to a problem? Please describe.
Merge the two functions Invoke-UniFiCidrWorkaroundV6
and Invoke-UniFiCidrWorkaround
into one.
Describe the solution you'd like
A -IPv6
parameter for Invoke-UniFiCidrWorkaround
.
Describe alternatives you've considered
Any other idea?
Desktop/Server (optional, but better provide more details):
Additional context
NN
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.