New commits:
commit e471157bf29f8c0ac78477291cbedb092c44c9e2
Merge: c01d4ed8a7 62ad534a94
Author: Andrew Cagney <[email protected]>
Date: Sat May 17 20:18:56 2025 -0400
Merge connections: set .name to the fully qualified connection prefix
(leaving the old, ambigious .name in .base_name)
v5.2 added struct connection .prefix that contains the full prefix
used when logging a connection (OE also adds a suffix). Unlike .name
it uniquely identifies any connection. For instance, in the table
below, notice how the old .name did not uniquely differentiate an
instance from it's template.
.config .base_name .name
->name (old .name) (old .prefix)
oe-group oppo oppo "oppo"
oe-group-template oppo oppo#1.2.3.0/24 "oppo#1.2.3.0/24"
oe-group-instance oppo oppo#1.2.3.0/24 "oppo#1.2.3.0/24"[1]
template conn conn "conn"
instance conn conn "conn"[1]
seclabel-template conn conn "conn"
sec-label-parent conn conn "conn"[1]
sec-label-child conn conn "conn"[1][2]
(one of the more unusual uses of .base_name is to identify
members of a connection family) but that can now be done
using .config)
commit 62ad534a94e2e3564549d9291e0977a5d77e724d
Author: Andrew Cagney <[email protected]>
Date: Sat May 17 10:02:34 2025 -0400
connections: use the new, improved, an unambigious .name when debug-logging
This means debug logs use:
"conn"[1]
where as before they used:
conn
commit 42e8bdd97c4fdec0e0c8fd1d213102618730cdf6
Author: Andrew Cagney <[email protected]>
Date: Sat May 17 09:42:43 2025 -0400
connections: rename .prefix -> .name
Where .name should be the best thing to use when (debug) as,
unlike the old name (now .base_name) it is unambigious
and pre-quoted:
OLD NAME NEW NAME
template "template"[1]
oe#1.2.3.4 "oe#1.2.3.4"[1]
commit ac4ba55b66aa8a0e91f2abfd36ace8d97cee3b40
Author: Andrew Cagney <[email protected]>
Date: Sat May 17 08:59:12 2025 -0400
connections: rename .name to .base_name
The .base_name (was just .name) is used to build a full connection
name (.prefix = "oegroup#192.1.2.0/24"[1]) however, on its own,
it is ambigous so is not the best choice when (debug) logging vis:
ROOT name BASE NAME IDENTICAL BETWEEN
template template template and instances
sec-label sec-label templates, parents, and children
oegroup oegroup#192.1.2.0/24 grop and instance
Renaming .name to .base_name makes space for renaming .prefix
(which is unambigious) to .name.
commit f80378487c299c48e1ec58de582cabf7feecf227
Author: Andrew Cagney <[email protected]>
Date: Sat May 17 08:07:43 2025 -0400
connections: add root conection's name to struct config
_______________________________________________
Swan-commit mailing list -- [email protected]
To unsubscribe send an email to [email protected]