Skip to content

Commit

Permalink
add fti gre interface
Browse files Browse the repository at this point in the history
  • Loading branch information
door7302 committed Jan 19, 2024
1 parent fcc09e1 commit 6780690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion output/jsonify.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (m *Metadata) UpdateMeta(rd *xml.RawData) error {
for _, phy := range rd.IfList.Physicals {
phy_name := strings.Trim(phy.Name, "\n")
// Keep only WAN ports
if strings.Contains(phy_name, "et-") || strings.Contains(phy_name, "xe-") || strings.Contains(phy_name, "ge-") || strings.Contains(phy_name, "ae") || strings.Contains(phy_name, "lt-") || strings.Contains(phy_name, "ps-") {
if strings.Contains(phy_name, "et-") || strings.Contains(phy_name, "xe-") || strings.Contains(phy_name, "ge-") || strings.Contains(phy_name, "ae") || strings.Contains(phy_name, "lt-") || strings.Contains(phy_name, "ps-") || strings.Contains(phy_name, "fti-") || strings.Contains(phy_name, "gr-") {
_, ok := m.Meta[rd.Family][rd.RtrName][phy_name]
if !ok {
m.Meta[rd.Family][rd.RtrName][phy_name] = make(map[string]string)
Expand Down

0 comments on commit 6780690

Please sign in to comment.