mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
InterfaceStack LowerAlias: case PPP is higher and VLANTermination is Lower
This commit is contained in:
parent
7a4e9504fd
commit
2b25d77d26
1 changed files with 6 additions and 2 deletions
|
|
@ -204,9 +204,13 @@ int browseInterfaceStackInst(struct dmctx *dmctx, DMNODE *parent_node, void *pre
|
|||
// The lower layer is Device.Ethernet.VLANTermination.{i}.
|
||||
char *device = get_device(section_name(s));
|
||||
if (device[0] != '\0') {
|
||||
struct uci_section *vlan_sect = NULL;
|
||||
adm_entry_get_linker_param(dmctx, dm_print_path("%s%cEthernet%cVLANTermination%c", dmroot, dm_delim, dm_delim, dm_delim), device, &value);
|
||||
loweralias = get_alias_by_section("dmmap_network", "device", s, "vlan_term_alias");
|
||||
layer_inst = get_instance_by_section(dmctx->instance_mode, "dmmap_network", "device", s, "section_name", section_name(s), "vlan_term_instance", "vlan_term_alias");
|
||||
uci_foreach_option_eq("network", "device", "name", device, vlan_sect) {
|
||||
break;
|
||||
}
|
||||
loweralias = get_alias_by_section("dmmap_network", "device", vlan_sect, "vlan_term_alias");
|
||||
layer_inst = get_instance_by_section(dmctx->instance_mode, "dmmap_network", "device", s, "section_name", section_name(vlan_sect), "vlan_term_instance", "vlan_term_alias");
|
||||
if (value != NULL)
|
||||
found = 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue