Comments (2)
I do wonder whose role is what. What is models role, what is input methods role?
Since obviously in most typical case, we use some CLI like mechanism, like SSH or Telnet, and then we do not have any protocol level notofication about success or failure, so if we want to determine that, then it is obviously model's responsibility to figure it out.
But for HTTP, FTP and others, we can determine some errors, should we raise them, or leave them to model as well?
Could there be use-case, where model wants 404 and wants to act on that? And if we make it error, this use-case cannot be satisfied?
You could of course look at the content of the returned string, and determine it is an error, and then raise error from the model, causing failure for that node to be booked.
from oxidized.
It's a simple download of file in http.
ixoff.txt
I see that you manage error 401 for authentification cases.
But not any other HTML Error code.
Error 404 (document not found) is the best known.
Error 400 (Bad Request) / 403 (Forbidden) are also frequent.
If i can i manage http code in my model without rewrite all Mechanize code (i do it in Dell Drac model, because i don't find how to do), it's ok for me.
But i don't find how.
from oxidized.
Related Issues (20)
- Issue with Grandstream GXW4216 HOT 2
- no source http url config HOT 7
- Fortigate config backup failing HOT 8
- Push to repo fails due to unknown remote ssh hostkey HOT 3
- Oxidized v.0.30.1 versions function not working HOT 3
- How to ignore fortigate backup config password difference for versions difference check HOT 3
- How to increase the show versions function performance? HOT 10
- Don't hardcode `~/.config/oxidized/config` HOT 1
- Can't have Oxidized use different credentials depending on the device/group? HOT 13
- Stats REST endpoint returns invalid values HOT 6
- SSH login failures to Fortigates caused by unsupported public key algorithms HOT 3
- Oxidized Fails to Start, Was Working Fine Earlier??? HOT 3
- Another Rugged issue - "Hook push_to_remote
- Issue with removing multiple secrets on consecutive lines on ios.rb due to \s matching linebreaks. HOT 2
- rake test fails randomly
- Oxidized/Ruby prefers IPv4 address over IPv6 address resolved from DNS HOT 1
- Oxidized is in a loop with a device? HOT 1
- Can't have http as both input and source HOT 1
- Vyatta/VyOS will fail prompt detection on Vyatta 1.5+ rolling
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oxidized.