Skip to content

Commit 6632797

Browse files
committed
add RoutingPlan
1 parent f746b5d commit 6632797

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

yeti_switch_api/orm/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from .numberlist import Numberlist # noqa: F401
1414
from .numberlist_item import NumberlistItem # noqa: F401
1515
from .rateplan import Rateplan # noqa: F401
16+
from .routing_plan import RoutingPlan # noqa: F401
1617
from .routing_tag import RoutingTag # noqa: F401
1718

1819
from .gateway import Gateway # noqa: F401

yeti_switch_api/orm/orm_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from .numberlist import Numberlist
1717
from .numberlist_item import NumberlistItem
1818
from .rateplan import Rateplan
19+
from .routing_plan import RoutingPlan
1920
from .routing_tag import RoutingTag
2021

2122
from .gateway import Gateway
@@ -56,6 +57,7 @@ def __register_models(cls):
5657
cls.__register_model(Numberlist)
5758
cls.__register_model(NumberlistItem)
5859
cls.__register_model(Rateplan)
60+
cls.__register_model(RoutingPlan)
5961
cls.__register_model(RoutingTag)
6062
cls.__register_model(Gateway)
6163
cls.__register_model(GatewayGroup)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from .base_model import BaseModel, AttributeField
2+
3+
4+
class RoutingPlan(BaseModel):
5+
class Meta:
6+
path = "routing-plans"
7+
type = "routing-plans"
8+
9+
name = AttributeField("name")
10+
rate_delta_max = AttributeField("rate-delta-max")
11+
use_lnp = AttributeField("use-lnp")
12+
max_rerouting_attempts = AttributeField("max-rerouting-attempts")
13+

0 commit comments

Comments
 (0)