netconf记录

16 阅读1分钟
  • create vs
<rpc message-id='101' xmlns='urn:ietf:params:xml:ns:netconf:base:1.0' xmlns:web='urn:ietf:params:xml:ns:netconf:base:1.0'>
	<edit-config>
		<target>
			<running/>
		</target>
		<config>
			<top xmlns='http://www.h3c.com/netconf/config:1.0' web:operation='create'>
				<SLB>
					<ISO8583VirtualServers>
                                            <ISO8583VirtualServer>
                                                <Name>vshttp-test222</Name>
                                            </ISO8583VirtualServer>
					</ISO8583VirtualServers>
				</SLB>
			</top>
		</config>
	</edit-config>
</rpc>
  • get vs
<rpc message-id='101' xmlns='urn:ietf:params:xml:ns:netconf:base:1.0' xmlns:web='http://www.h3c.com/netconf/base:1.0'>
	<get>
		<filter type='subtree'>
			<top xmlns='http://www.h3c.com/netconf/data:1.0'>
				<SLB>
					<ISO8583VirtualServers>
						<ISO8583VirtualServer>
                                                    <Name>8583-test</Name>
						</ISO8583VirtualServer>
					</ISO8583VirtualServers>
				</SLB>
			</top>
		</filter>
	</get>
</rpc>
  • get-bulk vs
<rpc message-id='101' xmlns='urn:ietf:params:xml:ns:netconf:base:1.0' xmlns:web='http://www.h3c.com/netconf/base:1.0'>
	<get-bulk>
		<filter type='subtree'>
			<top xmlns='http://www.h3c.com/netconf/data:1.0'>
				<SLB>
					<ISO8583VirtualServers>
						<ISO8583VirtualServer>
						</ISO8583VirtualServer>
					</ISO8583VirtualServers>
				</SLB>
			</top>
		</filter>
	</get-bulk>
</rpc>
  • edit vs
<rpc message-id='101' xmlns='urn:ietf:params:xml:ns:netconf:base:1.0' xmlns:web='urn:ietf:params:xml:ns:netconf:base:1.0'>
	<edit-config>
		<target>
			<running/>
		</target>
		<config>
			<top xmlns='http://www.h3c.com/netconf/config:1.0' web:operation='merge'>
				<SLB>
					<ISO8583VirtualServers web:operation='merge'>
						<ISO8583VirtualServer>
							<Name>8583-test</Name>
							<ServiceEnable>disable</ServiceEnable>
						</ISO8583VirtualServer>
					</ISO8583VirtualServers>
				</SLB>
			</top>
		</config>
	</edit-config>
</rpc>