simple add bew interfaces and ipaddresses

This commit is contained in:
IluaAir
2025-06-26 12:16:25 +03:00
parent 8bb5ae94df
commit 8715f2223d
2 changed files with 112 additions and 1 deletions

31
type.py
View File

@@ -1,5 +1,34 @@
from dataclasses import dataclass
from ipaddress import IPv4Network
vimpelcomSWType = {
"has_primary_ip": "true",
"tenant": "vimpelcom",
"role": "Kommutator",
}
}
# vimpelcomIPaddress374 = {
# 'prefix': IPv4Network('15.0.0.0/8'),
# 'vrf': 'VK374'
# }
#
# vimpelcomIPaddressSSPD = {
# 'prefix': IPv4Network('12.0.0.0/8'),
# 'vrf': 'SORM_BB'
# }
@dataclass
class vimpelcomIPaddress374:
prefix: IPv4Network = IPv4Network('15.0.0.0/8')
vrf: str = 'VK374'
@dataclass
class vimpelcomIPaddressSSPD:
prefix: IPv4Network = IPv4Network('12.0.0.0/8')
vrf: str = 'SORM_BB'
@dataclass
class vimpelcomIPaddressTEST:
prefix: IPv4Network = IPv4Network('192.168.0.0/16')
vrf: str = 'TEST'