OVN - switch and l2gateway
topo
+-----------------------------------------------------+ +-----------------------------------------------------+
|ls1 | |ls2 |
| | | ...
OVN实验四:OVN负载均衡
参考
topo
outside network
|
|
|
+----------------+------------------------------+
| eth1 |
| |
| sw outside |
| |
| ...
OVN实验五:OVN ACL
参考
topo
outside network
|
|
|
+----------------+------------------------------+
| eth1 |
| |
| sw outside |
| |
| ...
OVN实验一:使用OVN配置交换机
参考
install ovn
export RPM_OVS=http://download-node-02.eng.bos.redhat.com/brewroot/packages/openvswitch2.13/2.13.0/112.el8fdp/x86_64/openvswitch2.13-2.13.0-112.el8fdp.x86_64.rpm
export RPM_OVN_COMMON=http://download-node-02.eng.bos.redhat.com/brewroot/packages/ovn2.13/20.12.0/121.el8fdp/x86_64/ovn2.13-20.12.0-121.el8fdp.x86_64.rpm
export RPM_SEL...
OVN实验二:使用OVN配置路由器
参考
topo
+-----------------------------------------------------------------------------+
| router tenant1 |
| |
| |
| 02:ac:10:ff:01:2...
OVN实验三:OVN连接外部网络
参考
topo
outside network
|
|
|
+----------------+------------------------------+
| eth1 |
| |
| sw outside |
| |
| ...
控制python函数运行时间
yield
#!/usr/bin/python
# -*- coding: UTF-8 -*-
def fab(max):
n, a, b = 0, 0, 1
while n < max:
yield b # 使用 yield
# print b
a, b = b, a + b
n = n + 1
for n in fab(5):
print n
简单地讲,yield 的作用就是把一个函数变成一个 generator,带有 yield 的函数不再是一个普通函数,Python 解释器会将其视为一个 generator,
调用 fab(5) 不会执行 fab 函数,...
共计 106 篇文章,14 页。