These are chat archives for allegro/ralph

27th
Apr 2017
swb
@spencewb16_twitter
Apr 27 2017 05:04
@rbuckland one thing to keep in mind which i just realized. do NOT make the original ethernet model your template for creating an ethernet connection between assets. reason? ethernet model is tied to ip addresses. in other words, if you delete a connection, you'd delete an ip, and vice versa. def don't want to do that...
unrelated question, would there be a way to make the network view of a data_center asset have a read-only link that links back to the main network (of which that ip is a part of)? see below screenshot. i tried making it loop back to the network like in pic below (field that is readonly that says 'network') but it's actually pretty complicated - the relationship between ip addresses, ethernet, and network.
Screen Shot 2017-04-27 at 1.07.07 AM.png
i found the hack-y way to input the network id number in 'label' and it will successfully go back to its parent network, but that's obviously not the right solution.
swb
@spencewb16_twitter
Apr 27 2017 05:10
in ralph/assets/models/components.py - there's a def __str__ where it's pulling that info from, that's how i found the above method. anyway, if ppl have suggestions that'd be cool
swb
@spencewb16_twitter
Apr 27 2017 05:15
and yes, i realize there is a thing get_network_path that's used for the original ip view in ralph/networks/admin.py but not entirely sure that thing would work in this case?
xliiv
@xliiv
Apr 27 2017 08:33
@ar4s @mkurek
allegro/ralph#3047
Ramon Buckland
@rbuckland
Apr 27 2017 09:47
@spencewb16_twitter I have been mulling over what I need .. it's essentially a component that is an interface and it can have a set of tags or type-tags
The type tags I want would be physical and logical
An interface can be dependant on one or more
Interfaces on the same asset
Ramon Buckland
@rbuckland
Apr 27 2017 09:57
Switches..
swb
@spencewb16_twitter
Apr 27 2017 19:24
sure, i would make sure it applies to all data_center assets. a feature like the U-height of data_center assets, where the # of ports is determined by the model would be cool. that's how i would approach it
Ramon Buckland
@rbuckland
Apr 27 2017 22:52
Thanks @spencewb16_twitter I'll look at that. The # of ports for a switch from its model is good. Do you think the Nic on a host should also be registered as a an asset model ? Questions/ thoughts I have are ... how to represent a server with built in Nics .. and (eg.) one with a PCI NIC