6.148. NetworkAttachment 구조
호스트가 네트워크에 연결하는 방법을 설명합니다.
호스트의 네트워크 연결의 XML 표현입니다.
<network_attachment href="/ovirt-engine/api/hosts/123/nics/456/networkattachments/789" id="789">
<network href="/ovirt-engine/api/networks/234" id="234"/>
<host_nic href="/ovirt-engine/api/hosts/123/nics/123" id="123"/>
<in_sync>true</in_sync>
<ip_address_assignments>
<ip_address_assignment>
<assignment_method>static</assignment_method>
<ip>
<address>192.168.122.39</address>
<gateway>192.168.122.1</gateway>
<netmask>255.255.255.0</netmask>
<version>v4</version>
</ip>
</ip_address_assignment>
</ip_address_assignments>
<reported_configurations>
<reported_configuration>
<name>mtu</name>
<expected_value>1500</expected_value>
<actual_value>1500</actual_value>
<in_sync>true</in_sync>
</reported_configuration>
<reported_configuration>
<name>bridged</name>
<expected_value>true</expected_value>
<actual_value>true</actual_value>
<in_sync>true</in_sync>
</reported_configuration>
...
</reported_configurations>
</network_attachment>
네트워크를 네트워크 인터페이스 카드에 연결할 때 ID 또는 이름이 있는 네트워크 요소가 필요합니다.
예를 들어, 네트워크를 호스트 네트워크 인터페이스 카드에 연결하려면 다음과 같은 요청을 보냅니다.
POST /ovirt-engine/api/hosts/123/nics/456/networkattachments
다음과 같은 요청 본문이 있습니다.
<networkattachment>
<network id="234"/>
</networkattachment>
호스트에 newtwork를 연결하려면 다음과 같은 요청을 보냅니다.
POST /ovirt-engine/api/hosts/123/networkattachments
다음과 같은 요청 본문이 있습니다.
<network_attachment>
<network id="234"/>
<host_nic id="456"/>
</network_attachment>
ip_address_assignments 및 properties 요소는 updatable post-creation입니다.
예를 들어 newtork 첨부 파일을 업데이트하려면 다음과 같은 요청을 보냅니다.
PUT /ovirt-engine/api/hosts/123/nics/456/networkattachments/789
다음과 같은 요청 본문이 있습니다.
<network_attachment>
<ip_address_assignments>
<ip_address_assignment>
<assignment_method>static</assignment_method>
<ip>
<address>7.1.1.1</address>
<gateway>7.1.1.2</gateway>
<netmask>255.255.255.0</netmask>
<version>v4</version>
</ip>
</ip_address_assignment>
</ip_address_assignments>
</network_attachment>
네트워크 인터페이스 카드에서 네트워크를 분리하려면 다음과 같은 요청을 보냅니다.
DELETE /ovirt-engine/api/hosts/123/nics/456/networkattachments/789
네트워크 연결 구성 변경 사항을 명시적으로 커밋해야 합니다.
네트워크 연결의 속성 하위 수집의 XML 표현:
<network_attachment>
<properties>
<property>
<name>bridge_opts</name>
<value>
forward_delay=1500 group_fwd_mask=0x0 multicast_snooping=1
</value>
</property>
</properties>
...
</network_attachment>
| 이름 | 유형 | 요약 |
|---|---|---|
|
| 이 오브젝트에 대한 설명이 포함된 무료 텍스트입니다. | |
|
| 사람이 읽을 수 있는 설명은 일반 텍스트로 표시됩니다. | |
|
| 고유 식별자입니다. | |
|
| ||
|
| 네트워크의 IP 구성입니다. | |
|
| 사람이 읽을 수 있는 이름은 일반 텍스트로 표시됩니다. | |
|
| 네트워크 구성에 대한 사용자 정의 속성을 정의합니다. | |
|
| 구성 속성의 읽기 전용 목록입니다. |
6.148.1. 속성 링크 복사링크가 클립보드에 복사되었습니다!
네트워크 구성에 대한 사용자 정의 속성을 정의합니다.
브리지 옵션에는 bridge_opts의 세트 이름이 있습니다. 공백 문자로 여러 항목을 구분합니다. 다음 키는 bridge_opts 에 유효합니다.
| 이름 | 기본값 |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|