Skip to content

Commit 312939f

Browse files
committed
fix
1 parent 759dd8e commit 312939f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pkg/commonvpc/drawioGenerator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func (s *Subnet) ShowOnSubnetMode() bool { return true }
1818
func (sgl *SecurityGroupLayer) ShowOnSubnetMode() bool { return false }
1919
func (sg *SecurityGroup) ShowOnSubnetMode() bool { return false }
2020
func (v *Vsi) ShowOnSubnetMode() bool { return false }
21-
func (v *NetworkInterface) ShowOnSubnetMode() bool { return false }
21+
func (ni *NetworkInterface) ShowOnSubnetMode() bool { return false }
2222

2323
// for DrawioResourceIntf that are not VPCResourceIntf, we implement Kind():
2424
func (r *Region) Kind() string { return "Cloud" }

pkg/commonvpc/vpc.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ type NetworkInterface struct {
4747
Vsi string `json:"-"`
4848
}
4949

50+
func (ni *NetworkInterface) VsiName() string {
51+
return ni.Vsi
52+
}
53+
5054
func (ni *NetworkInterface) Name() string {
5155
return nameWithBracketsInfo(ni.Vsi, ni.Address())
5256
}

0 commit comments

Comments
 (0)