Skip to content

Commit

Permalink
ipvs: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
svinota committed Mar 14, 2024
1 parent 21b0b4d commit 8f73638
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pyroute2/ipvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,19 @@
ipvs.service("add", service=service)
ipvs.dest("add", service=service, dest=real_server)
Delete a service::
from pyroute2 import IPVS, IPVSService
ipvs = IPVS()
ipvs.service("del",
service=IPVSService(
addr="192.168.122.1",
port=80,
protocol=IPPROTO_TCP
)
)
'''

from socket import AF_INET
Expand Down

0 comments on commit 8f73638

Please sign in to comment.