docs: fixed issue with bad imports in grpc doc examples
This commit is contained in:
parent
fcf1448ab6
commit
c444304040
1 changed files with 4 additions and 4 deletions
|
@ -177,7 +177,7 @@ core.edit_link(session.id, link)
|
||||||
```python
|
```python
|
||||||
# required imports
|
# required imports
|
||||||
from core.api.grpc import client
|
from core.api.grpc import client
|
||||||
from core.api.grpc.core_pb2 import Position
|
from core.api.grpc.wrappers import Position
|
||||||
|
|
||||||
# interface helper
|
# interface helper
|
||||||
iface_helper = client.InterfaceHelper(ip4_prefix="10.0.0.0/24", ip6_prefix="2001::/64")
|
iface_helper = client.InterfaceHelper(ip4_prefix="10.0.0.0/24", ip6_prefix="2001::/64")
|
||||||
|
@ -209,7 +209,7 @@ core.start_session(session)
|
||||||
```python
|
```python
|
||||||
# required imports
|
# required imports
|
||||||
from core.api.grpc import client
|
from core.api.grpc import client
|
||||||
from core.api.grpc.core_pb2 import NodeType, Position
|
from core.api.grpc.wrappers import NodeType, Position
|
||||||
|
|
||||||
# interface helper
|
# interface helper
|
||||||
iface_helper = client.InterfaceHelper(ip4_prefix="10.0.0.0/24", ip6_prefix="2001::/64")
|
iface_helper = client.InterfaceHelper(ip4_prefix="10.0.0.0/24", ip6_prefix="2001::/64")
|
||||||
|
@ -244,7 +244,7 @@ core.start_session(session)
|
||||||
```python
|
```python
|
||||||
# required imports
|
# required imports
|
||||||
from core.api.grpc import client
|
from core.api.grpc import client
|
||||||
from core.api.grpc.core_pb2 import NodeType, Position
|
from core.api.grpc.wrappers import NodeType, Position
|
||||||
|
|
||||||
# interface helper
|
# interface helper
|
||||||
iface_helper = client.InterfaceHelper(ip4_prefix="10.0.0.0/24", ip6_prefix="2001::/64")
|
iface_helper = client.InterfaceHelper(ip4_prefix="10.0.0.0/24", ip6_prefix="2001::/64")
|
||||||
|
@ -309,7 +309,7 @@ will use the defaults. When no configuration is used, the defaults are used.
|
||||||
```python
|
```python
|
||||||
# required imports
|
# required imports
|
||||||
from core.api.grpc import client
|
from core.api.grpc import client
|
||||||
from core.api.grpc.core_pb2 import NodeType, Position
|
from core.api.grpc.wrappers import NodeType, Position
|
||||||
from core.emane.models.ieee80211abg import EmaneIeee80211abgModel
|
from core.emane.models.ieee80211abg import EmaneIeee80211abgModel
|
||||||
|
|
||||||
# interface helper
|
# interface helper
|
||||||
|
|
Loading…
Add table
Reference in a new issue