Comments (7)
Hey @kmarwah @aywaldron
It looks like we dropped config options for hostname and port from config.yaml
in ait/dsn/sle/common.py
with 28ae827ee05095216c9e1ef8928eed9d72c4da8c
Any particular motivation for dropping them? I can't track the changes to a ticket but I'm assuming it's in relation to "CMD and TLM use different hostnames/ports"
Thanks!
from ait-dsn.
@MJJoyce They were actually added, and then dropped. If you go to release 1.1.0_alpha they weren't in there. Right now we don't check available hostnames for availability, so these parameters are dynamic when you're doing testing and having them in either the config file or the script itself doesn't make too much difference. I think the plan is to allow for a list of hostnames in the config file when we get around to addressing ticket #64.
from ait-dsn.
36f3668 is the commit they were added in, which is part of PR https://github.com/NASA-AMMOS/AIT-DSN/pull/69 (the commit you referenced, 28ae827 is later on in PR https://github.com/NASA-AMMOS/AIT-DSN/pull/69 as well).
from ait-dsn.
Thanks @aywaldron.
The config values are used in 1.0.0_alpha when I look
https://github.com/NASA-AMMOS/AIT-DSN/blob/1.1.0_alpha/ait/dsn/sle/common.py#L100
But I realize I may have been a bit vague. I was more interested in why we suddenly stopped pulling the config value in SLE.__init__
. Namely here:
https://github.com/NASA-AMMOS/AIT-DSN/blob/master/ait/dsn/sle/common.py#L102
I'm fine with not pulling that from the config, and like you mentioned, that will change after #64. Was more interested in why it got dropped since I couldn't find a justification / ticket for it. More book keeping than anything =)
from ait-dsn.
@MJJoyce They are referenced there but at runtime they would have defaulted to kwargs.get('hostname', None)
, and the example scripts passed the hostname/port in as kwargs
at runtime rather than including them in the config.
I don't think there is a reason that we stopped pulling from the config there, and I agree that we should revert the init back to what it was before, pulling from the config first and defaulting to kwargs
.
from ait-dsn.
+1 regarding your second paragraph, I'll update the parent to reflect that.
from ait-dsn.
Resolved in #83
from ait-dsn.
Related Issues (20)
- Add TCP Forwarding Plugin
- ait config dsn.sle.aos seems to be undocumented
- Fix frames.py to properly import util for hexint
- Consolidate testing framework
- Fix round-robin connections for SLE interfaces HOT 3
- Add capability for TCP Manager to publish TCP data into PUB/SUB
- Add select/sendall when using DSN socket
- Add plugin for extracting CCSDS packets from AOS packets HOT 1
- Fix select call in common.py
- Fix typo in AOS_to_CCSDS
- Configure the destination stream names for received AOS frames
- Packaging and Dev Tooling Rework
- Fix AOS_to_CCSDS Idle Byte checking HOT 1
- Turn the BCH code into a plugin
- Update encryption documentation KMC config example
- Fix readthedocs build issue
- Create plugins for the SLE services
- Add TC frame Segmentation Byte option
- Python 3.10 Support HOT 1
- SLE Common Class Variables Should be Instance Variables HOT 1
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 ait-dsn.