Comments (7)
Hi ! Regarding aci_ignore_uplink_re
, you can look at the values you have in the db with this query, e.g.
netdisco@vm02 $ netdisco-do psql
netdisco=> select ip, port, remote_type from device_port where ip = '10.219.2.76' and remote_type is not null order by port;
ip | port | remote_type
-------------+-----------------+----------------------------------------------------------------
10.219.2.76 | Ethernet1/2 | NetApp HCI H410S-1 Storage Node, Release Element Software 12.7
10.219.2.76 | Ethernet1/51 | topology/pod-1/node-101
10.219.2.76 | Ethernet1/52 | topology/pod-1/node-102
10.219.2.76 | Ethernet103/1/6 | NetApp HCI H410S-1 Storage Node, Release Element Software 12.7
So just setting the value to ^topology
or even topology
might do what you want. For multiple values, you can use e.g. (NetApp|topology)
.
For the "Unicast-Routing (L3) is inactive" case, this probably means that the MACs do not appear in the {fvCEp}->{children}->{fvRsCEpToPathEp}
structure of the APIC API. Is there a place in the Object browser or URL in moquery where you see the MACs that you'd expect to be in Netdisco for the port? Then we could maybe try to query this location as well.
from nd2-worker-plugin-aci.
Hi,
thanks for quick response.
I tried this already, I put a line aci_ignore_uplink_re: '^topology'
at the end of my deployment.yml and restarted the netdisco-daemon.
remote_type definitely doesn't start with topology:
netdisco=> select ip, port, is_uplink, remote_type from device_port where ip = '172.31.252.225' and port = 'Ethernet1/5';
ip | port | is_uplink | remote_type
----------------+-------------+-----------+--------------------------------------------
172.31.252.225 | Ethernet1/5 | t | Debian GNU/Linux 10 (buster) Linux ...
(1 row)
netdisco=>
But I still get this debug output from Macsuck:
[17669] 2023-12-11 14:26:05 debug [172.31.255.61] cisco aci macsuck - 90:xx:xx:24:B8:66 fabric switch 172.31.252.225 port Ethernet1/5 is an uplink, skipped
It looks like I didn't set the variable correctly.
For the second case (L3), I can not reproduce problem right now. The MACs appear in the API structure and in debug output.
from nd2-worker-plugin-aci.
Oh I misread what you want, to mark everything but "topology" I hope this negative lookahead will work:
aci_ignore_uplink_re: "^(?!topology)"
from nd2-worker-plugin-aci.
That doesn't work.
I tried something and found out, that "Debian" (to test positiv matching) works fine, but if I add any special character, for examle "^Debian" or "(Debian)" it doesn't match anymore.
Does this work for you?
from nd2-worker-plugin-aci.
found the reason:
in Nodes.pm on Line 91 is the \Q infront of the variable:
... !~ m/\Q$aci_ignore_uplink_re/){
This doesn't work in regex. If you put it at the end, everything is fine.
... !~ m/$aci_ignore_uplink_re\Q/){
Also the negative lookahead aci_ignore_uplink_re: "^(?!topology).*$"
is working :)
from nd2-worker-plugin-aci.
thanks for figuring that out, I must have added the \Q once because I thought it would help... well it clearly didn't so far :) So I just removed it and also added the examples from here to the readme.
from nd2-worker-plugin-aci.
thanks :)
from nd2-worker-plugin-aci.
Related Issues (8)
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 nd2-worker-plugin-aci.