@@ -351,7 +351,7 @@ func (c *spoc) setupRouter46(a *ast.Router) {
351351 r .ipV6 = false
352352 stripFilterOnly (r , r6 .interfaces )
353353 c .setupRouter2 (r )
354- c .allRouters = append ( c . allRouters , r )
354+ c .allRouters . push ( r )
355355 }
356356 if r6 .interfaces != nil {
357357 if r .interfaces == nil {
@@ -361,7 +361,7 @@ func (c *spoc) setupRouter46(a *ast.Router) {
361361 r6 .ipV6 = true
362362 stripFilterOnly (r6 , r .interfaces )
363363 c .setupRouter2 (r6 )
364- c .allRouters = append ( c . allRouters , r6 )
364+ c .allRouters . push ( r6 )
365365 }
366366}
367367
@@ -1331,7 +1331,7 @@ func (c *spoc) setupArea(v *ast.Area) {
13311331 }
13321332 l := groupObjList {n }
13331333 if n2 := n .combined46 ; n2 != nil {
1334- l = append ( l , n2 )
1334+ l . push ( n2 )
13351335 }
13361336 if len (l ) >= 1 {
13371337 n := l [0 ].(* network )
@@ -1364,7 +1364,7 @@ func (c *spoc) setupArea(v *ast.Area) {
13641364 }
13651365 }
13661366 }
1367- c .ascendingAreas = append ( c . ascendingAreas , ar )
1367+ c .ascendingAreas . push ( ar )
13681368 if p := ar .routerAttributes .policyDistributionPoint ; p != nil {
13691369 if p .ipV6 != ar .ipV6 {
13701370 if ar2 == nil {
@@ -1386,7 +1386,7 @@ func (c *spoc) setupArea(v *ast.Area) {
13861386 // Attribute 'nat' is only applied to IPv4 part in
13871387 // combined v4/v6 area.
13881388 ar2 .nat = nil
1389- c .ascendingAreas = append ( c . ascendingAreas , ar2 )
1389+ c .ascendingAreas . push ( ar2 )
13901390 }
13911391}
13921392
@@ -3219,7 +3219,7 @@ func (c *spoc) tryNetworkRefList(a *ast.Attribute, ctx string) netList {
32193219 if len (name ) == len (v ) {
32203220 c .err ("Expected type 'network:' in %s" , ctx2 )
32213221 } else if n , found := c .symTable .network [name ]; found {
3222- result = append ( result , n )
3222+ result . push ( n )
32233223 } else {
32243224 c .warn ("Ignoring undefined network:%s in %s" , name , ctx2 )
32253225 }
@@ -3946,7 +3946,7 @@ func (c *spoc) moveLockedIntf(intf *routerIntf) {
39463946 cp .origRouter = orig
39473947 cp .interfaces = intfList {intf }
39483948 intf .router = & cp
3949- c .allRouters = append ( c . allRouters , & cp )
3949+ c .allRouters . push ( & cp )
39503950
39513951 // Don't check fragment for reachability.
39523952 cp .policyDistributionPoint = nil
0 commit comments