No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

S600-E V200R011C10 NETCONF YANG API Reference

This document describes the NETCONF API functions supported by the switch, including the data model and samples.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring the FTP Server

Configuring the FTP Server

This section describes the configuration model of the FTP server and provides examples of XML packets.

Data Model

The configuration model file matching the FTP server is huawei-ftp.yang.

Table 2-50  Configuring the FTP server

Object

Description

Value

Remarks

/huawei-ftp:ftp-server/ipv4-enable

Enables the IPv4 FTP server.

The value is of the Boolean type:
  • true: enabled
  • false: disabled

N/A

/huawei-ftp:ftp-server/ipv6-enable

Enables the IPv6 FTP server.

The value is of the Boolean type:
  • true: enabled
  • false: disabled

N/A

Enabling the FTP Server

This section provides a sample of enabling the FTP server using the config method.

Table 2-51  Enabling the FTP server

Operation

XPATH

edit-config:config

  • /huawei-ftp:ftp-server/ipv4-enable
  • /huawei-ftp:ftp-server/ipv6-enable

Data Requirements

Table 2-52  Enabling the FTP server

Item

Data

Description

Whether the FTP server is enabled

true

Enable the FTP server.

Request Example

<?xml version='1.0' encoding='UTF-8'?> 
<rpc message-id="1" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> 
<edit-config>
  <target>
    <running/>
  </target>
<config>
 <huawei-ftp:ftp-server xmlns:huawei-ftp="urn:huawei:params:xml:ns:yang:huawei-ftp"> 
 <huawei-ftp:ipv4-enable>true</huawei-ftp:ipv4-enable> 
 <huawei-ftp:ipv6-enable>true</huawei-ftp:ipv6-enable>
</huawei-ftp:ftp-server>
</config>
</edit-config>
</rpc>

Response Example

Sample of successful response

<?xml version='1.0' encoding='UTF-8'> 
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
  <ok/> 
</rpc-reply>

Sample of failed response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-message>parse rpc config error.</error-message>
  </rpc-error>
</rpc-reply>
Translation
Download
Updated: 2019-09-23

Document ID: EDOC1000178028

Views: 4919

Downloads: 0

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next