ShinobiLayer : Bluemix Infrastructure (이전 SoftLayer)의 VLAN 트렁크 설정 API
1. 소개
Bluemix Infrastructure(구 SoftLayer)에는 VLAN의 생각이 있으며, Bluemix Infrastructure의 물리적 스위치 측에서 트렁크 VLAN을 구성할 수도 있습니다. 즉, 물리적 서버를 프로비저닝하는 VLAN(Primary IP가 할당되는 VLAN)은 네이티브 VLAN으로 동작하지만, Ticket이나 API를 통해 별도 주문한 VLAN을 트렁크할 수 있습니다.
이를 통해 하나의 NIC로 여러 VLAN과 통신할 수 있어 VMware 제품 등으로 세그먼트화할 때나 구역화에 이용할 수 있습니다.
※주의 1. 가상 서버에서는 하이퍼 바이저를 Bluemix가 관리하고 있기 때문에 트렁크 설정은 할 수 없습니다.
※주의 2. Vyatta Gateway Appliance에서 VLAN을 Associated한 상태에서 routed/bypass 모드를 변경할 수 있습니다만, 이것도 내부적으로는 트렁크의 ON/OFF를 실시하고 있습니다.
VLAN 트렁크의 설정 작업은, Ticket으로 이하와 같이 의뢰하는 것도 가능합니다만,, 매회 티켓을 기표해야 한다든가, 정말로 설정되어 있는지를 스스로 실시하고 싶다고 하는 요망도 있을까라고 생각합니다. 따라서 여기에서는 이를 위한 API 예를 들고 싶습니다.
Subject: Trunk VLANs on eth0 & eth2
Details: Please trunk VLANs 1101,1102, and 1103 on eth0 & eth2 NIC pair for each hostxxx.softlayer.com, yyy.softlayer.com and zzz.softlayer.com
2. VLAN 트렁크 구성용 API 포인트
이 근처를 이용하면 좋을 것 같습니다.
ぇぇぺぺr. 그 ft ぁ ぇ r. 코 m / 레후 렌세 / 세 r ゃ 세 s / 그 ft ぁ ぇ r_ 네와 rk_ 코 m 포넨 t / 아 d
ぇぇぺぺr. 그 ft ぁ ぇ r. 코 m / 레후 렌세 / 세 r ぃ 세 s / 그 ft ぁ ぇ r_ 네와 rk_
ぇぇぺぺr. 그 ft ぁ ぇ r. 코 m / 레후 렌세 / 세 r ぃ 세 s / 그 ft ぁ ぇ r_ 네와 rk_ 코 m 포넨 t / 게 t 네와 rk V ぁ
ぇぇぺぺr. 그 ft ぁ ぇ r. 코 m / 레후 렌세 / 세 r ぃ 세 s / 그 ft ぁ ぇ r_ 네와 rk_ 코 m 포넨 t / 레 모 ゔ ぇ 네 ぉ rk V ぁ T run ks
다만, 이 링크중의 설명에 의하면, TrunkVLAN를 취득하기 위해서는, Hardware -> Network_Component -> uplinkComponent (이것도 Network_Component형) -> networkVlanTrunks로 액세스 할 필요가 있습니다. Hardware -> Network_Component -> networkVlanTrunks에서는 검색할 수 없습니다.
Add VLANs as trunks to a network component. The VLANs given must be assigned to your account, and on the router to which this network component is connected. The current native VLAN (networkVlanId/networkVlan) cannot be added as a trunk. be called on a network component attached directly to customer assigned hardware, though all trunking operations will occur on the uplinkComponent. A current list of VLAN trunks for a network component on a customer server can be found at 'uplinkComponent->networkVlanTrunks'.
This method returns an array of SoftLayer_Network_Vlans which were added as trunks. Any requested trunks which are already trunked will be silently ignored, and will not be returned.
Configuration of network hardware is done asynchronously, do not depend on the return of this call as an indication that the newly trunked VLANs will be accessible.
3. VLAN 트렁크 설정 획득 예
getVLANinfoByHWID.pyimport SoftLayer
import sys
parm=sys.argv
hwid=parm[1]
print("HWID : %s" % hwid)
client = SoftLayer.create_client_from_env()
hwobj = client.call('Hardware', 'getObject', id=hwid, mask="networkComponents.uplinkComponent[networkVlan,networkVlanTrunks.networkVlan]")
print("fullyQualifiedDomainName : %s" % hwobj['fullyQualifiedDomainName'])
for networkComponent in hwobj['networkComponents']:
print("-------------------------------------------")
print("NW Component ID : %s" % networkComponent['id'])
print("name+port : %s" % networkComponent['name'] + str(networkComponent['port']))
print("speed : %s" % networkComponent['speed'])
print("maxSpeed : %s" % networkComponent['maxSpeed'])
print("status : %s" % networkComponent['status'])
print("primaryIpAddress : %s" % networkComponent.get('primaryIpAddress'))
print("macAddress : %s" % networkComponent.get('macAddress'))
print("ipmiIpAddress : %s" % networkComponent.get('ipmiIpAddress'))
print("ipmiMacAddress : %s" % networkComponent.get('ipmiMacAddress'))
if ('uplinkComponent' in networkComponent):
uplinkComponent = networkComponent['uplinkComponent']
print("SwitchFQDN : %s" % uplinkComponent['hardware']['fullyQualifiedDomainName'])
print("NativeVLAN-ID : %s" % uplinkComponent['networkVlan']['id'])
print("NativeVLAN-number: %s" % uplinkComponent['networkVlan']['vlanNumber'])
for networkVlanTrunk in uplinkComponent['networkVlanTrunks']:
print("TrunkVLAN-ID : %s" % networkVlanTrunk['networkVlan']['id'])
print("TrunkVLAN-number : %s" % networkVlanTrunk['networkVlan']['vlanNumber'])
HWID를 매개변수로 지정해야 합니다. 취득 방법은 여러 가지가 있습니다만, 이하와 같이 Customer Portal에서도 간단하게 확인할 수 있습니다.
실행 예# python getVLANinfoByHWID.py 557457
HWID : 557457
fullyQualifiedDomainName : esx01.softlayer.com
-------------------------------------------
NW Component ID : 4220479
name+port : mgmt0
speed : 100
maxSpeed : 100
status : ACTIVE
primaryIpAddress : None
macAddress : None
ipmiIpAddress : 10.132.34.157
ipmiMacAddress : 02:25:90:fa:9c:60
SwitchFQDN : bms179.sr02.tok02.softlayer.com
NativeVLAN-ID : 1227573
NativeVLAN-number: 1756
NativeVLAN-name : 1.Mgmt(Native VLAN)
-------------------------------------------
NW Component ID : 4220471
name+port : eth0
speed : 10000
maxSpeed : 10000
status : ACTIVE
primaryIpAddress : 10.132.34.136
macAddress : 00:25:90:fa:9c:60
ipmiIpAddress : None
ipmiMacAddress : None
SwitchFQDN : bcs179a.sr02.tok02.softlayer.com
NativeVLAN-ID : 1227573
NativeVLAN-number: 1756
NativeVLAN-name : 1.Mgmt(Native VLAN)
TrunkVLAN-ID : 1228573
TrunkVLAN-number : 1930
TrunkVLAN-name : 2.vMotion/FT/Storage
-------------------------------------------
NW Component ID : 4220473
name+port : eth1
speed : 0
maxSpeed : 10000
status : USER_OFF
primaryIpAddress : 161.202.139.28
macAddress : 00:25:90:fa:9c:61
ipmiIpAddress : None
ipmiMacAddress : None
SwitchFQDN : fcs179a.sr02.tok02.softlayer.com
NativeVLAN-ID : 1227571
NativeVLAN-number: 1675
NativeVLAN-name : Public (Native VLAN)
-------------------------------------------
NW Component ID : 4220475
name+port : eth2
speed : 10000
maxSpeed : 10000
status : ACTIVE
primaryIpAddress : None
macAddress : 00:25:90:fa:9c:62
ipmiIpAddress : None
ipmiMacAddress : None
SwitchFQDN : bcs179b.sr02.tok02.softlayer.com
NativeVLAN-ID : 1227573
NativeVLAN-number: 1756
NativeVLAN-name : 1.Mgmt(Native VLAN)
TrunkVLAN-ID : 1228573
TrunkVLAN-number : 1930
TrunkVLAN-name : 2.vMotion/FT/Storage
-------------------------------------------
NW Component ID : 4220477
name+port : eth3
speed : 0
maxSpeed : 10000
status : USER_OFF
primaryIpAddress : None
macAddress : 00:25:90:fa:9c:63
ipmiIpAddress : None
ipmiMacAddress : None
SwitchFQDN : fcs179b.sr02.tok02.softlayer.com
NativeVLAN-ID : 1227571
NativeVLAN-number: 1675
NativeVLAN-name : Public (Native VLAN)
4. VLAN 트렁크 설정 추가 예
addVLANTrunk.pyimport SoftLayer
import sys
parm=sys.argv
eth0NWComponentID=parm[1]
eth2NWComponentID=parm[2]
vlanNumber=parm[3]
client = SoftLayer.create_client_from_env()
#Add
client.call('Network_Component','addNetworkVlanTrunks', [{'vlanNumber': vlanNumber}], id=eth0NWComponentID)
client.call('Network_Component','addNetworkVlanTrunks', [{'vlanNumber': vlanNumber}], id=eth2NWComponentID)
실행 예# python addVLANTrunk.py 4220471 4220475 1930
5. VLAN 트렁크 설정 삭제 예
removeVLANTrunk.pyimport SoftLayer
import sys
parm=sys.argv
eth0NWComponentID=parm[1]
eth2NWComponentID=parm[2]
vlanNumber=parm[3]
client = SoftLayer.create_client_from_env()
#Remove
client.call('Network_Component','removeNetworkVlanTrunks', [{'vlanNumber': vlanNumber}], id=eth0NWComponentID)
client.call('Network_Component','removeNetworkVlanTrunks', [{'vlanNumber': vlanNumber}], id=eth2NWComponentID)
실행 예# python removeVLANTrunk.py 4220471 4220475 1930
Reference
이 문제에 관하여(ShinobiLayer : Bluemix Infrastructure (이전 SoftLayer)의 VLAN 트렁크 설정 API), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/testnin2/items/516191ca0fefde473619
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
이 근처를 이용하면 좋을 것 같습니다.
ぇぇぺぺr. 그 ft ぁ ぇ r. 코 m / 레후 렌세 / 세 r ゃ 세 s / 그 ft ぁ ぇ r_ 네와 rk_ 코 m 포넨 t / 아 d
ぇぇぺぺr. 그 ft ぁ ぇ r. 코 m / 레후 렌세 / 세 r ぃ 세 s / 그 ft ぁ ぇ r_ 네와 rk_
ぇぇぺぺr. 그 ft ぁ ぇ r. 코 m / 레후 렌세 / 세 r ぃ 세 s / 그 ft ぁ ぇ r_ 네와 rk_ 코 m 포넨 t / 게 t 네와 rk V ぁ
ぇぇぺぺr. 그 ft ぁ ぇ r. 코 m / 레후 렌세 / 세 r ぃ 세 s / 그 ft ぁ ぇ r_ 네와 rk_ 코 m 포넨 t / 레 모 ゔ ぇ 네 ぉ rk V ぁ T run ks
다만, 이 링크중의 설명에 의하면, TrunkVLAN를 취득하기 위해서는, Hardware -> Network_Component -> uplinkComponent (이것도 Network_Component형) -> networkVlanTrunks로 액세스 할 필요가 있습니다. Hardware -> Network_Component -> networkVlanTrunks에서는 검색할 수 없습니다.
Add VLANs as trunks to a network component. The VLANs given must be assigned to your account, and on the router to which this network component is connected. The current native VLAN (networkVlanId/networkVlan) cannot be added as a trunk. be called on a network component attached directly to customer assigned hardware, though all trunking operations will occur on the uplinkComponent. A current list of VLAN trunks for a network component on a customer server can be found at 'uplinkComponent->networkVlanTrunks'.
This method returns an array of SoftLayer_Network_Vlans which were added as trunks. Any requested trunks which are already trunked will be silently ignored, and will not be returned.
Configuration of network hardware is done asynchronously, do not depend on the return of this call as an indication that the newly trunked VLANs will be accessible.
3. VLAN 트렁크 설정 획득 예
getVLANinfoByHWID.pyimport SoftLayer
import sys
parm=sys.argv
hwid=parm[1]
print("HWID : %s" % hwid)
client = SoftLayer.create_client_from_env()
hwobj = client.call('Hardware', 'getObject', id=hwid, mask="networkComponents.uplinkComponent[networkVlan,networkVlanTrunks.networkVlan]")
print("fullyQualifiedDomainName : %s" % hwobj['fullyQualifiedDomainName'])
for networkComponent in hwobj['networkComponents']:
print("-------------------------------------------")
print("NW Component ID : %s" % networkComponent['id'])
print("name+port : %s" % networkComponent['name'] + str(networkComponent['port']))
print("speed : %s" % networkComponent['speed'])
print("maxSpeed : %s" % networkComponent['maxSpeed'])
print("status : %s" % networkComponent['status'])
print("primaryIpAddress : %s" % networkComponent.get('primaryIpAddress'))
print("macAddress : %s" % networkComponent.get('macAddress'))
print("ipmiIpAddress : %s" % networkComponent.get('ipmiIpAddress'))
print("ipmiMacAddress : %s" % networkComponent.get('ipmiMacAddress'))
if ('uplinkComponent' in networkComponent):
uplinkComponent = networkComponent['uplinkComponent']
print("SwitchFQDN : %s" % uplinkComponent['hardware']['fullyQualifiedDomainName'])
print("NativeVLAN-ID : %s" % uplinkComponent['networkVlan']['id'])
print("NativeVLAN-number: %s" % uplinkComponent['networkVlan']['vlanNumber'])
for networkVlanTrunk in uplinkComponent['networkVlanTrunks']:
print("TrunkVLAN-ID : %s" % networkVlanTrunk['networkVlan']['id'])
print("TrunkVLAN-number : %s" % networkVlanTrunk['networkVlan']['vlanNumber'])
HWID를 매개변수로 지정해야 합니다. 취득 방법은 여러 가지가 있습니다만, 이하와 같이 Customer Portal에서도 간단하게 확인할 수 있습니다.
실행 예# python getVLANinfoByHWID.py 557457
HWID : 557457
fullyQualifiedDomainName : esx01.softlayer.com
-------------------------------------------
NW Component ID : 4220479
name+port : mgmt0
speed : 100
maxSpeed : 100
status : ACTIVE
primaryIpAddress : None
macAddress : None
ipmiIpAddress : 10.132.34.157
ipmiMacAddress : 02:25:90:fa:9c:60
SwitchFQDN : bms179.sr02.tok02.softlayer.com
NativeVLAN-ID : 1227573
NativeVLAN-number: 1756
NativeVLAN-name : 1.Mgmt(Native VLAN)
-------------------------------------------
NW Component ID : 4220471
name+port : eth0
speed : 10000
maxSpeed : 10000
status : ACTIVE
primaryIpAddress : 10.132.34.136
macAddress : 00:25:90:fa:9c:60
ipmiIpAddress : None
ipmiMacAddress : None
SwitchFQDN : bcs179a.sr02.tok02.softlayer.com
NativeVLAN-ID : 1227573
NativeVLAN-number: 1756
NativeVLAN-name : 1.Mgmt(Native VLAN)
TrunkVLAN-ID : 1228573
TrunkVLAN-number : 1930
TrunkVLAN-name : 2.vMotion/FT/Storage
-------------------------------------------
NW Component ID : 4220473
name+port : eth1
speed : 0
maxSpeed : 10000
status : USER_OFF
primaryIpAddress : 161.202.139.28
macAddress : 00:25:90:fa:9c:61
ipmiIpAddress : None
ipmiMacAddress : None
SwitchFQDN : fcs179a.sr02.tok02.softlayer.com
NativeVLAN-ID : 1227571
NativeVLAN-number: 1675
NativeVLAN-name : Public (Native VLAN)
-------------------------------------------
NW Component ID : 4220475
name+port : eth2
speed : 10000
maxSpeed : 10000
status : ACTIVE
primaryIpAddress : None
macAddress : 00:25:90:fa:9c:62
ipmiIpAddress : None
ipmiMacAddress : None
SwitchFQDN : bcs179b.sr02.tok02.softlayer.com
NativeVLAN-ID : 1227573
NativeVLAN-number: 1756
NativeVLAN-name : 1.Mgmt(Native VLAN)
TrunkVLAN-ID : 1228573
TrunkVLAN-number : 1930
TrunkVLAN-name : 2.vMotion/FT/Storage
-------------------------------------------
NW Component ID : 4220477
name+port : eth3
speed : 0
maxSpeed : 10000
status : USER_OFF
primaryIpAddress : None
macAddress : 00:25:90:fa:9c:63
ipmiIpAddress : None
ipmiMacAddress : None
SwitchFQDN : fcs179b.sr02.tok02.softlayer.com
NativeVLAN-ID : 1227571
NativeVLAN-number: 1675
NativeVLAN-name : Public (Native VLAN)
4. VLAN 트렁크 설정 추가 예
addVLANTrunk.pyimport SoftLayer
import sys
parm=sys.argv
eth0NWComponentID=parm[1]
eth2NWComponentID=parm[2]
vlanNumber=parm[3]
client = SoftLayer.create_client_from_env()
#Add
client.call('Network_Component','addNetworkVlanTrunks', [{'vlanNumber': vlanNumber}], id=eth0NWComponentID)
client.call('Network_Component','addNetworkVlanTrunks', [{'vlanNumber': vlanNumber}], id=eth2NWComponentID)
실행 예# python addVLANTrunk.py 4220471 4220475 1930
5. VLAN 트렁크 설정 삭제 예
removeVLANTrunk.pyimport SoftLayer
import sys
parm=sys.argv
eth0NWComponentID=parm[1]
eth2NWComponentID=parm[2]
vlanNumber=parm[3]
client = SoftLayer.create_client_from_env()
#Remove
client.call('Network_Component','removeNetworkVlanTrunks', [{'vlanNumber': vlanNumber}], id=eth0NWComponentID)
client.call('Network_Component','removeNetworkVlanTrunks', [{'vlanNumber': vlanNumber}], id=eth2NWComponentID)
실행 예# python removeVLANTrunk.py 4220471 4220475 1930
Reference
이 문제에 관하여(ShinobiLayer : Bluemix Infrastructure (이전 SoftLayer)의 VLAN 트렁크 설정 API), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/testnin2/items/516191ca0fefde473619
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
import SoftLayer
import sys
parm=sys.argv
hwid=parm[1]
print("HWID : %s" % hwid)
client = SoftLayer.create_client_from_env()
hwobj = client.call('Hardware', 'getObject', id=hwid, mask="networkComponents.uplinkComponent[networkVlan,networkVlanTrunks.networkVlan]")
print("fullyQualifiedDomainName : %s" % hwobj['fullyQualifiedDomainName'])
for networkComponent in hwobj['networkComponents']:
print("-------------------------------------------")
print("NW Component ID : %s" % networkComponent['id'])
print("name+port : %s" % networkComponent['name'] + str(networkComponent['port']))
print("speed : %s" % networkComponent['speed'])
print("maxSpeed : %s" % networkComponent['maxSpeed'])
print("status : %s" % networkComponent['status'])
print("primaryIpAddress : %s" % networkComponent.get('primaryIpAddress'))
print("macAddress : %s" % networkComponent.get('macAddress'))
print("ipmiIpAddress : %s" % networkComponent.get('ipmiIpAddress'))
print("ipmiMacAddress : %s" % networkComponent.get('ipmiMacAddress'))
if ('uplinkComponent' in networkComponent):
uplinkComponent = networkComponent['uplinkComponent']
print("SwitchFQDN : %s" % uplinkComponent['hardware']['fullyQualifiedDomainName'])
print("NativeVLAN-ID : %s" % uplinkComponent['networkVlan']['id'])
print("NativeVLAN-number: %s" % uplinkComponent['networkVlan']['vlanNumber'])
for networkVlanTrunk in uplinkComponent['networkVlanTrunks']:
print("TrunkVLAN-ID : %s" % networkVlanTrunk['networkVlan']['id'])
print("TrunkVLAN-number : %s" % networkVlanTrunk['networkVlan']['vlanNumber'])
# python getVLANinfoByHWID.py 557457
HWID : 557457
fullyQualifiedDomainName : esx01.softlayer.com
-------------------------------------------
NW Component ID : 4220479
name+port : mgmt0
speed : 100
maxSpeed : 100
status : ACTIVE
primaryIpAddress : None
macAddress : None
ipmiIpAddress : 10.132.34.157
ipmiMacAddress : 02:25:90:fa:9c:60
SwitchFQDN : bms179.sr02.tok02.softlayer.com
NativeVLAN-ID : 1227573
NativeVLAN-number: 1756
NativeVLAN-name : 1.Mgmt(Native VLAN)
-------------------------------------------
NW Component ID : 4220471
name+port : eth0
speed : 10000
maxSpeed : 10000
status : ACTIVE
primaryIpAddress : 10.132.34.136
macAddress : 00:25:90:fa:9c:60
ipmiIpAddress : None
ipmiMacAddress : None
SwitchFQDN : bcs179a.sr02.tok02.softlayer.com
NativeVLAN-ID : 1227573
NativeVLAN-number: 1756
NativeVLAN-name : 1.Mgmt(Native VLAN)
TrunkVLAN-ID : 1228573
TrunkVLAN-number : 1930
TrunkVLAN-name : 2.vMotion/FT/Storage
-------------------------------------------
NW Component ID : 4220473
name+port : eth1
speed : 0
maxSpeed : 10000
status : USER_OFF
primaryIpAddress : 161.202.139.28
macAddress : 00:25:90:fa:9c:61
ipmiIpAddress : None
ipmiMacAddress : None
SwitchFQDN : fcs179a.sr02.tok02.softlayer.com
NativeVLAN-ID : 1227571
NativeVLAN-number: 1675
NativeVLAN-name : Public (Native VLAN)
-------------------------------------------
NW Component ID : 4220475
name+port : eth2
speed : 10000
maxSpeed : 10000
status : ACTIVE
primaryIpAddress : None
macAddress : 00:25:90:fa:9c:62
ipmiIpAddress : None
ipmiMacAddress : None
SwitchFQDN : bcs179b.sr02.tok02.softlayer.com
NativeVLAN-ID : 1227573
NativeVLAN-number: 1756
NativeVLAN-name : 1.Mgmt(Native VLAN)
TrunkVLAN-ID : 1228573
TrunkVLAN-number : 1930
TrunkVLAN-name : 2.vMotion/FT/Storage
-------------------------------------------
NW Component ID : 4220477
name+port : eth3
speed : 0
maxSpeed : 10000
status : USER_OFF
primaryIpAddress : None
macAddress : 00:25:90:fa:9c:63
ipmiIpAddress : None
ipmiMacAddress : None
SwitchFQDN : fcs179b.sr02.tok02.softlayer.com
NativeVLAN-ID : 1227571
NativeVLAN-number: 1675
NativeVLAN-name : Public (Native VLAN)
addVLANTrunk.py
import SoftLayer
import sys
parm=sys.argv
eth0NWComponentID=parm[1]
eth2NWComponentID=parm[2]
vlanNumber=parm[3]
client = SoftLayer.create_client_from_env()
#Add
client.call('Network_Component','addNetworkVlanTrunks', [{'vlanNumber': vlanNumber}], id=eth0NWComponentID)
client.call('Network_Component','addNetworkVlanTrunks', [{'vlanNumber': vlanNumber}], id=eth2NWComponentID)
실행 예
# python addVLANTrunk.py 4220471 4220475 1930
5. VLAN 트렁크 설정 삭제 예
removeVLANTrunk.pyimport SoftLayer
import sys
parm=sys.argv
eth0NWComponentID=parm[1]
eth2NWComponentID=parm[2]
vlanNumber=parm[3]
client = SoftLayer.create_client_from_env()
#Remove
client.call('Network_Component','removeNetworkVlanTrunks', [{'vlanNumber': vlanNumber}], id=eth0NWComponentID)
client.call('Network_Component','removeNetworkVlanTrunks', [{'vlanNumber': vlanNumber}], id=eth2NWComponentID)
실행 예# python removeVLANTrunk.py 4220471 4220475 1930
Reference
이 문제에 관하여(ShinobiLayer : Bluemix Infrastructure (이전 SoftLayer)의 VLAN 트렁크 설정 API), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/testnin2/items/516191ca0fefde473619
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
import SoftLayer
import sys
parm=sys.argv
eth0NWComponentID=parm[1]
eth2NWComponentID=parm[2]
vlanNumber=parm[3]
client = SoftLayer.create_client_from_env()
#Remove
client.call('Network_Component','removeNetworkVlanTrunks', [{'vlanNumber': vlanNumber}], id=eth0NWComponentID)
client.call('Network_Component','removeNetworkVlanTrunks', [{'vlanNumber': vlanNumber}], id=eth2NWComponentID)
# python removeVLANTrunk.py 4220471 4220475 1930
Reference
이 문제에 관하여(ShinobiLayer : Bluemix Infrastructure (이전 SoftLayer)의 VLAN 트렁크 설정 API), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/testnin2/items/516191ca0fefde473619텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)