[device] set the port state to default down for device cig and ingrasys s9130 and s9230 (#4618)

The default state of the port at startup is admin up, which can cause the port's state to be inconsistent with the actual state
This commit is contained in:
simonJi2018 2020-05-21 17:14:51 +08:00 committed by GitHub
parent be25581063
commit 3edb28516c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 172 deletions

View File

@ -620,59 +620,5 @@ port set property unit=0 portlist=129 medium-type=kr
port set property unit=0 portlist=130 medium-type=x port set property unit=0 portlist=130 medium-type=x
port advertise unit=0 portlist=129 speed-10g-kr port advertise unit=0 portlist=129 speed-10g-kr
port set property unit=0 portlist=129 an=enable port set property unit=0 portlist=129 an=enable
port set property unit=0 portlist=0 admin=enable port set property unit=0 portlist=0-53 admin=disable
port set property unit=0 portlist=1 admin=enable port set property unit=0 portlist=129-130 admin=disable
port set property unit=0 portlist=2 admin=enable
port set property unit=0 portlist=3 admin=enable
port set property unit=0 portlist=4 admin=enable
port set property unit=0 portlist=5 admin=enable
port set property unit=0 portlist=6 admin=enable
port set property unit=0 portlist=7 admin=enable
port set property unit=0 portlist=8 admin=enable
port set property unit=0 portlist=9 admin=enable
port set property unit=0 portlist=10 admin=enable
port set property unit=0 portlist=11 admin=enable
port set property unit=0 portlist=12 admin=enable
port set property unit=0 portlist=13 admin=enable
port set property unit=0 portlist=14 admin=enable
port set property unit=0 portlist=15 admin=enable
port set property unit=0 portlist=16 admin=enable
port set property unit=0 portlist=17 admin=enable
port set property unit=0 portlist=18 admin=enable
port set property unit=0 portlist=19 admin=enable
port set property unit=0 portlist=20 admin=enable
port set property unit=0 portlist=21 admin=enable
port set property unit=0 portlist=22 admin=enable
port set property unit=0 portlist=23 admin=enable
port set property unit=0 portlist=24 admin=enable
port set property unit=0 portlist=25 admin=enable
port set property unit=0 portlist=26 admin=enable
port set property unit=0 portlist=27 admin=enable
port set property unit=0 portlist=28 admin=enable
port set property unit=0 portlist=29 admin=enable
port set property unit=0 portlist=30 admin=enable
port set property unit=0 portlist=31 admin=enable
port set property unit=0 portlist=32 admin=enable
port set property unit=0 portlist=33 admin=enable
port set property unit=0 portlist=34 admin=enable
port set property unit=0 portlist=35 admin=enable
port set property unit=0 portlist=36 admin=enable
port set property unit=0 portlist=37 admin=enable
port set property unit=0 portlist=38 admin=enable
port set property unit=0 portlist=39 admin=enable
port set property unit=0 portlist=40 admin=enable
port set property unit=0 portlist=41 admin=enable
port set property unit=0 portlist=42 admin=enable
port set property unit=0 portlist=43 admin=enable
port set property unit=0 portlist=44 admin=enable
port set property unit=0 portlist=45 admin=enable
port set property unit=0 portlist=46 admin=enable
port set property unit=0 portlist=47 admin=enable
port set property unit=0 portlist=48 admin=enable
port set property unit=0 portlist=49 admin=enable
port set property unit=0 portlist=50 admin=enable
port set property unit=0 portlist=51 admin=enable
port set property unit=0 portlist=52 admin=enable
port set property unit=0 portlist=53 admin=enable
port set property unit=0 portlist=129 admin=disable
port set property unit=0 portlist=130 admin=disable

View File

@ -620,59 +620,5 @@ port set property unit=0 portlist=129 medium-type=kr
port set property unit=0 portlist=130 medium-type=x port set property unit=0 portlist=130 medium-type=x
port advertise unit=0 portlist=129 speed-10g-kr port advertise unit=0 portlist=129 speed-10g-kr
port set property unit=0 portlist=129 an=enable port set property unit=0 portlist=129 an=enable
port set property unit=0 portlist=0 admin=enable port set property unit=0 portlist=0-53 admin=disable
port set property unit=0 portlist=1 admin=enable port set property unit=0 portlist=129-130 admin=disable
port set property unit=0 portlist=2 admin=enable
port set property unit=0 portlist=3 admin=enable
port set property unit=0 portlist=4 admin=enable
port set property unit=0 portlist=5 admin=enable
port set property unit=0 portlist=6 admin=enable
port set property unit=0 portlist=7 admin=enable
port set property unit=0 portlist=8 admin=enable
port set property unit=0 portlist=9 admin=enable
port set property unit=0 portlist=10 admin=enable
port set property unit=0 portlist=11 admin=enable
port set property unit=0 portlist=12 admin=enable
port set property unit=0 portlist=13 admin=enable
port set property unit=0 portlist=14 admin=enable
port set property unit=0 portlist=15 admin=enable
port set property unit=0 portlist=16 admin=enable
port set property unit=0 portlist=17 admin=enable
port set property unit=0 portlist=18 admin=enable
port set property unit=0 portlist=19 admin=enable
port set property unit=0 portlist=20 admin=enable
port set property unit=0 portlist=21 admin=enable
port set property unit=0 portlist=22 admin=enable
port set property unit=0 portlist=23 admin=enable
port set property unit=0 portlist=24 admin=enable
port set property unit=0 portlist=25 admin=enable
port set property unit=0 portlist=26 admin=enable
port set property unit=0 portlist=27 admin=enable
port set property unit=0 portlist=28 admin=enable
port set property unit=0 portlist=29 admin=enable
port set property unit=0 portlist=30 admin=enable
port set property unit=0 portlist=31 admin=enable
port set property unit=0 portlist=32 admin=enable
port set property unit=0 portlist=33 admin=enable
port set property unit=0 portlist=34 admin=enable
port set property unit=0 portlist=35 admin=enable
port set property unit=0 portlist=36 admin=enable
port set property unit=0 portlist=37 admin=enable
port set property unit=0 portlist=38 admin=enable
port set property unit=0 portlist=39 admin=enable
port set property unit=0 portlist=40 admin=enable
port set property unit=0 portlist=41 admin=enable
port set property unit=0 portlist=42 admin=enable
port set property unit=0 portlist=43 admin=enable
port set property unit=0 portlist=44 admin=enable
port set property unit=0 portlist=45 admin=enable
port set property unit=0 portlist=46 admin=enable
port set property unit=0 portlist=47 admin=enable
port set property unit=0 portlist=48 admin=enable
port set property unit=0 portlist=49 admin=enable
port set property unit=0 portlist=50 admin=enable
port set property unit=0 portlist=51 admin=enable
port set property unit=0 portlist=52 admin=enable
port set property unit=0 portlist=53 admin=enable
port set property unit=0 portlist=129 admin=disable
port set property unit=0 portlist=130 admin=disable

View File

@ -642,61 +642,5 @@ port set property unit=0 portlist=129 medium-type=kr
port set property unit=0 portlist=130 medium-type=x port set property unit=0 portlist=130 medium-type=x
port advertise unit=0 portlist=129 speed-10g-kr port advertise unit=0 portlist=129 speed-10g-kr
port set property unit=0 portlist=129 an=enable port set property unit=0 portlist=129 an=enable
port set property unit=0 portlist=0 admin=enable port set property unit=0 portlist=0-55 admin=disable
port set property unit=0 portlist=1 admin=enable port set property unit=0 portlist=129-130 admin=disable
port set property unit=0 portlist=2 admin=enable
port set property unit=0 portlist=3 admin=enable
port set property unit=0 portlist=4 admin=enable
port set property unit=0 portlist=5 admin=enable
port set property unit=0 portlist=6 admin=enable
port set property unit=0 portlist=7 admin=enable
port set property unit=0 portlist=8 admin=enable
port set property unit=0 portlist=9 admin=enable
port set property unit=0 portlist=10 admin=enable
port set property unit=0 portlist=11 admin=enable
port set property unit=0 portlist=12 admin=enable
port set property unit=0 portlist=13 admin=enable
port set property unit=0 portlist=14 admin=enable
port set property unit=0 portlist=15 admin=enable
port set property unit=0 portlist=16 admin=enable
port set property unit=0 portlist=17 admin=enable
port set property unit=0 portlist=18 admin=enable
port set property unit=0 portlist=19 admin=enable
port set property unit=0 portlist=20 admin=enable
port set property unit=0 portlist=21 admin=enable
port set property unit=0 portlist=22 admin=enable
port set property unit=0 portlist=23 admin=enable
port set property unit=0 portlist=24 admin=enable
port set property unit=0 portlist=25 admin=enable
port set property unit=0 portlist=26 admin=enable
port set property unit=0 portlist=27 admin=enable
port set property unit=0 portlist=28 admin=enable
port set property unit=0 portlist=29 admin=enable
port set property unit=0 portlist=30 admin=enable
port set property unit=0 portlist=31 admin=enable
port set property unit=0 portlist=32 admin=enable
port set property unit=0 portlist=33 admin=enable
port set property unit=0 portlist=34 admin=enable
port set property unit=0 portlist=35 admin=enable
port set property unit=0 portlist=36 admin=enable
port set property unit=0 portlist=37 admin=enable
port set property unit=0 portlist=38 admin=enable
port set property unit=0 portlist=39 admin=enable
port set property unit=0 portlist=40 admin=enable
port set property unit=0 portlist=41 admin=enable
port set property unit=0 portlist=42 admin=enable
port set property unit=0 portlist=43 admin=enable
port set property unit=0 portlist=44 admin=enable
port set property unit=0 portlist=45 admin=enable
port set property unit=0 portlist=46 admin=enable
port set property unit=0 portlist=47 admin=enable
port set property unit=0 portlist=48 admin=enable
port set property unit=0 portlist=49 admin=enable
port set property unit=0 portlist=50 admin=enable
port set property unit=0 portlist=51 admin=enable
port set property unit=0 portlist=52 admin=enable
port set property unit=0 portlist=53 admin=enable
port set property unit=0 portlist=54 admin=enable
port set property unit=0 portlist=55 admin=enable
port set property unit=0 portlist=129 admin=disable
port set property unit=0 portlist=130 admin=disable

View File

@ -349,4 +349,5 @@ port set property unit=0 portlist=129-130 medium-type=kr
port set property unit=0 portlist=0-31 fec=disable port set property unit=0 portlist=0-31 fec=disable
port set adver unit=0 portlist=129-130 speed-10g-kr port set adver unit=0 portlist=129-130 speed-10g-kr
port set property unit=0 portlist=129-130 an=enable port set property unit=0 portlist=129-130 an=enable
port set property unit=0 portlist=0-31,129-130 admin=enable port set property unit=0 portlist=129-130 admin=enable
port set property unit=0 portlist=0-31 admin=disable

View File

@ -678,4 +678,5 @@ port set property portlist=0-63 fec=disable
port set adver portlist=129-130 speed-10g-kr port set adver portlist=129-130 speed-10g-kr
port set property portlist=129-130 an=enable port set property portlist=129-130 an=enable
port set property portlist=0-63,129-130 admin=enable port set property portlist=129-130 admin=enable
port set property portlist=0-63 admin=disable